I.Benini
4th March 2003, 11:01
To avoid the 2048 string length constraint in reading and writing files, can I use seq.getc$ (testing chr$(10) and chr$(13) for the end of line) and seq.putc$ ? I didn't find any example in Baan IV.

Can someone send me some example and advice ?

Thank you.

anch1974
4th March 2003, 12:58
You can use seq.puts$ to write data to file, but you can only write one character at a time.
Syntax is puts$(char, file pointer)

I.Benini
4th March 2003, 13:23
yes, I know.
My doubts were how to know the end-of-line. I compare the return string with chr$(10) (\n LINE FEED) or the previuos and the actual char with chr$(10) & chr$(13) (\r\n CRLF) in order to find out if the line is at end. Then I process the line and write char by char another record file.

Up to now it seems to work.

Thank you.

anch1974
4th March 2003, 13:48
The return value is The character written to the file. Or an empty string if the end-of-file was reached or an error occurred.
The last system error is available in the e variable, for values of e u can refer errors code from Baan Help