On Dec 04, 2006, at 3:20 PM, David Lloyd wrote:
Joe,
I'm writing it out as a TextOutPutStream:
ts=f.CreateTextFile
ts.Write(s)
ts.Close
...where I've constructed the 's' similarly:
s="a line"+chr(13)+"more text", etc.
I tried chr(10) instead to no avail as well as other things.
(I haven't tried writing by line tho.)
I'm opening it in the Windows system default plain text editor
(whatever it's called - I can't recall), and I created the RB
application on a Macintosh.
As an exercise I saved some text in BBEdit and moved it to windows
to try and one thing that did work there was saving with DOS line
breaks. I guess UNIX line breaks would do the same thing too. But I
just can't seem to be able to do this from within an RB application
(RB 2006 4).
-David L
try using
s="a line"+EndOfLine+"more text", etc.
this will use the correct line ending for the platform you run your
application on
There will still be oddities if you move a Mac file to Windows or
vice versa
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>