Hello, I tested the following code on LuaEdit and stores a string just like I want it.
local lineVal = myFile:read("*line")
However when I test it in Gideros, it stores a string with the line plus a carriage return, which I don't need. How do I get only the strings of the line without the carriage return?
Please help.
Comments
edited: whoops, used the wrong slashes earlier
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
lineVal = string.gsub(lineVal,"\r","")
My OS is Windows.