Problem with readline
Alan Mazuti
amazu at trusteeservicesinc.com
Tue Apr 7 09:14:18 PDT 2009
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':
More information about the Filepro-list
mailing list