string difference between Windows and MAC

Hi everyone!

I actually work on an interactive book.
For that, I use .txt file for the story.

I use this code :

[lua]sRecup = file:read( “*l” )
while ( sRecup ~= nil ) do
contents1 = contents1…sRecup…"\n"
sRecup = file:read( “*l” )
end
print ( string.format( ‘%q’, contents1 ) )[/lua]

this text format is good on windows but when I did the same think on corona MAC there is trouble and the text is on a single line.

format on windows (from terminal):
[text]Once upon a time :\
There was a princess …[/text]
On MAC (from terminal):
[text]Once upon a time :\r\
There was a princess …\r[/text]

I read the same text and the result is this on MAC.

If anyone can help me, i will love him >_< [import]uid: 75671 topic_id: 12346 reply_id: 312346[/import]

I was having a similar problem. There is some good info on it here:
http://en.wikipedia.org/wiki/Newline#Common_problems

I found that by recreating my text files in my code editor(IntelliJ Idea) and re-saving, I could use the .txt file across both Windows and Mac. [import]uid: 65371 topic_id: 12346 reply_id: 45401[/import]