Hi Everyone:
I want to count the number of fields there are in a delimited text file. Here is my code.
****code******
FSEEK(lnHandle, 0,0) ** seek record
DO WHILE !FEOF(lnHandle)
lsBuf = FGETS(lnHandle, 1024)
&& lsBuf contains a record. I.E. lsbuf = '|F845|,2569,69899,0,0,25989,1
What I need is to get the number of fields in this record. In this case
there are 7 fields in the record.
EndDo
Thanks
MA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only