SriksAdi
14th October 2004, 15:21
Hi,
I am trying to open a text file on the server (Baan IVc4 on Windows).
I could open the file, while I read it, the text is not captured line wise. The entire text in the file is read into the variable with line separators as "\n".

How to read the file, line wise ?


regards
Sriks

malutz
14th October 2004, 15:23
Hej,

what type of file are you trying to read (txt)? Is it a unix or windows file?

SriksAdi
14th October 2004, 15:24
Hi,
It's a text file, .txt on Windows. It's a windows file.

regards
Sriks

malutz
14th October 2004, 15:34
Hej,

we usually use

seq.open(output.path.file,"wt+")

Have you tried different flags, like "wt"?

SriksAdi
14th October 2004, 15:40
Hi,
I have tried "wt+", it deletes the text in the file.
And "at+" returns error -17.

regards
Sriks

SriksAdi
14th October 2004, 15:52
Hi,
I could solve it using seq.gets( )

Regards
Sriks