Re: Reading a file into a "sequence"
- Posted by John F Dutcher <John_Dutcher at urmc.rochester.edu> Nov 18, 2004
- 539 views
You guys do a heck of a job... The sub routine is a nice piece of work.... This is returned in "ex.err" when called with the input below & the code lines below: "sequence lengths are not the same (4 != 0)" This seems to refer to line (12) of "CSV_to_Sequence(object pText)"
sequence Fields fn=open("tml_extract.txt","r") if fn < 1 then puts(1, "Unable to open the disk file\n") abort(fn) else while 1 do Fields = CSV_to_Sequence( gets(fn)) if Fields = {} then exit else ..... -- etc. etc.
The first record in "tml_extract.txt" is: (and does seem to contain (4) "fields") "%HDR","EXTRACT","11/17/2004 02:23:10 AM","UNIVERSITY OF ROCHESTER MEDICAL CENTER"