baan_ghai
26th April 2004, 07:00
hi all

I want to read the Text File through baan Updation Session.
how to read the text file


sanj

LittleJohn
26th April 2004, 07:07
if your data in the textfile is in a certain format

fptr = seq.open(filename, "r")
while(seq.gets(buffer,1024,fptr) =0)
string.scan(buffer,"%s",hold.text)
<<your parsing and conditional stmts
endwhile

seq.close(fptr)

make sure you have this "#include <bic_text>" in your program script.

Cheers
LittleJohn