NPRao
19th July 2002, 09:13
Hi All,

I am trying to use the baan standard function - seq.write.local

I found that my file has continuous sequence of text and not a number of lines for every seq.write.local() call, how can I introduce a new line character at the end of seq.write.local() function ?

The seq.puts() function automatically takes care of putting each line and the end of line character.

Any ideas will be appreciated ?

Thanks!

~Vamsi
19th July 2002, 09:17
Why don't you use seq.puts and then follow up with a server2client?

NPRao
19th July 2002, 09:23
I already tried that...I found that after the file is transferred, but some blank spaces were introduced in it ... :confused:

klesch
19th July 2002, 10:27
Add chr$(10) to the end of each line that you write to a file. Maybe opening a file in binary mode before that is a good idea.

(If your file will only be used in Windows environment, then chr$(10) & chr$(13) can be used.)

NPRao
19th July 2002, 23:26
Thanks for the tip, klesch... Works awesome now... :p