Re: Reading a file into a "sequence"

new topic     » goto parent     » topic index » view thread      » older message » newer message

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"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu