It looks like you're new here. If you want to get involved, click one of these buttons!
local s = file.readAll() -- file is the file handle local result = string.gsub(s, "n", "") -- remove line breaks print(result)
Likes: totebo
Comments
http://lua-users.org/wiki/LuaCsv
http://lua-users.org/wiki/CsvUtils
https://github.com/geoffleyland/lua-csv
http://lua-users.org/wiki/CsvUtils
It only reads one line, so I've added the extra functionality to read an entire file. For some reason it includes line breaks in the conversion, which I'm trying to figure out how to remove.
Likes: totebo