Problem with readline

Brian K. White brian at aljex.com
Tue Apr 7 10:14:54 PDT 2009


Alan Mazuti wrote:
> Just installed the latest version of filePro for linux and I am getting a
> segmentation error when I use the below code when using the command
> readline.  This worked using the previous version.  Besides going back to
> the previous version anybody have any thoughts.  Below is the code.  The
> opendir commands succeeds and fn contains a valid filename and xa="1".  As
> soon as It hits the ab=readline(xa,ln) I get the segmentation error.
>
> dreport = 5.6.07D4
> redhat linux = 2.4.21-58.
>
> Alan
>
> ::xa(8,#)                         'Array subscript':
> ::aa(8,#)                         'Number of files in directory':
> ::ab(8,*)                         'Number bytes read in':
> ::fn(32,*)                        'Name of file we will import':
> ::ln(80,*)                        'Text line':
> ::xx(8,#):
> ::xx="1":
> ::aa=opendir("*.XML","/appl/ingeo/tsi"):
> process1:::
> ::fn=@dirlist_name[xx]{"."{@dirlist_ext[xx]   'Name of file to import:
> ::xa=open("/appl/ingeo/tsi/"{fn,"rt")         'Open file':
> process2:::
> ::ab=readline(xa,ln)                          'Read a line in':
>   
Add the 3rd parameter to readline()
It's supposed to be optional but we have had problems with that also in 
5.0.15 and not in 5.0.14 and below.

-- 
bkw



More information about the Filepro-list mailing list