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]