(I copied this from another topic of mine)
I was reading lines of text from a file, for example:
2011
02
11
using code like this:
[lua]local yearString = fh:read( “*l”)
local monthString = fh:read( “*l”)
local dayString = fh:read( “*l”)[/lua]
Under the simulator, the strings equal “2011”, “02” and “11” as expected. Under Android, they each have a carriage return (13) added to the end.
Is this known behaviour? I’m on Windows. Thanks. [import]uid: 23949 topic_id: 6310 reply_id: 306310[/import]
[import]uid: 23949 topic_id: 6310 reply_id: 23086[/import]