I once recieved a file where the entire table was sent to me as one line. I t was unbelievably long. The way I solved the issue was using 1 FGETS()
creating a loop and then substringing the entire line while keeping a
generic count:
reading = fgets(lnhandle)
for x = 1 to len(fgets(reading))
m.field1 = substr(reading,x,fieldlength1)
m.field2 = substr(reading, x+fieldlength1+1,fieldlenght2)
etc.
x = fieldlength1 + fieldlength2
endfor
Sandy
Previous
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