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


On 4 Dec 2006, at 22:09, [EMAIL PROTECTED] wrote:

My application writes good text files when compiled as a Macintosh
application - complete with the the correct line breaks, etc.

But when the same application is compiled for Windows and run from
there, the text files there lose the line breaks.

That's odd.  Where are you getting this text, and how are you writing
it?

I suppose this is a text encoding matter

No, it's a line-endings matter.  That's different.  Text encodings are
most likely not involved here.

_______________________________________________
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>

Reply via email to