bkkland
2nd February 2006, 20:11
I want to count records from the importing text file. How do I read record from my file????
mark_h
2nd February 2006, 20:20
Seems to me I have done this a couple of ways, but the one I remember the most is:
fp=seq.open(filename,"r")
reof = seq.gets(buffer,1,fp)
while reof=0
count = count + 1
reof = seq.gets(buffer,1,fp)
endwhile
rc = seq.close(fp)
Seems to me the other way was using a UNIX command or something like that. A case of CRS.
NPRao
2nd February 2006, 21:05
Also refer to the thread - Uploading file into table using session script (http://www.baanboard.com/baanboard/showthread.php?t=25161&highlight=lines)