gous99
25th June 2003, 20:44
Does anybody knows the ascci value of the character this function puts at the end of each line, and at the end of the last line, thanks.

NvanBeest
25th June 2003, 20:47
On Windows systems: #13#10

On Unix systems: #10

The difference is handled by the porting set.

NPRao
25th June 2003, 20:51
Refer to the links for more info -

seq.write.local (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=5881&highlight=end+of+line)

.txt file - Notepad vs Wordpad (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=9069&highlight=end+of+line)

End of File control characters (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=8391&highlight=end+of+line)

chjagge
30th June 2003, 03:26
Even using the asc 10 , you still get problems if you need to look at this file in Windows when the file is produced in a UNIX environment. The file still wraps in Windows but looks fine in UNIX vi (except for the ^M chars). I've been plagued with this problem for days and resorted to using the shell command and modifying the file produced (after the seq.close ofcourse) by appending the "\015" character to each line using the awk command. It works well for me.

lsatenstein
25th January 2005, 02:22
My requirement was met as follows.

Use seq.write() for the beginning, and middle of the record to be written.

Use seq.puts() for the last part of the record. seq.puts() appends the "\n"
chr$(10)