Read text files in Windows

Hello all

I have written an application which creates a text file, and then emails this file to the user.

The text file contains different lines of text, all of which are written with the command:
[lua]fileID:write(“some text\n”)
fileID:write(“some more text\n”)[/lua]

When this file has been emailed to my Mac & I open it with TextEdit it looks perfect, ie:
“some text
some more text”

If the same file is emailed to a Windows PC & opened with Notepad, there are no line breaks, ie
“some text some more text”

I have tried using “\r\n” but this does not work either.
Does anyone know how to do this??

thanks [import]uid: 74250 topic_id: 16235 reply_id: 316235[/import]

As far as I know the command “\n” isn`t working.

I`ve wanted to use that but it is impossible.

Hope it gets repaired by the staff btw. [import]uid: 89165 topic_id: 16235 reply_id: 60540[/import]

Thanks for your reply Rodrigo,

I also hope that this will be fixed at some point, as the files created are not very easy to read with the eye!

thanks [import]uid: 74250 topic_id: 16235 reply_id: 60563[/import]

Hi Robin,

Yes, I totally agree with you. Some time ago I tried to use exactly the “\n” to break lines of one sample code I was using to study BUT I could not get it!

PS: Mrs. Peach Pellen (Ansca Staff) told me that time that it will be available through Corona again BUT they do not know WHEN. :frowning:
Regards, [import]uid: 89165 topic_id: 16235 reply_id: 60570[/import]