Page 1 of 1
Lua I/O work on linux? [YES]
Posted: Wed Feb 06, 2019 6:07 pm
by nickelodeon0077
Lua I/O work on linux?
i'm updating my
PixelFxDesigner and i need to know
example:
Code: Select all
file_ = io.open("effects\\"..tostring(_name)..".lua", "w")
file_:write(a)
file_:close()
Re: Lua I/O work on linux?
Posted: Wed Feb 06, 2019 6:34 pm
by pgimeno
io.open works, yes.
The directory separator is / though. Note that / also works on Windows so you can make it work on both by using /.
io.execute works too, but the typically available commands are not anything like on Windows. I'd just stay away from it.
Re: Lua I/O work on linux?
Posted: Wed Feb 06, 2019 6:48 pm
by nickelodeon0077
pgimeno wrote: ↑Wed Feb 06, 2019 6:34 pm
io.open works, yes.
The directory separator is / though. Note that / also works on Windows so you can make it work on both by using /.
io.execute works too, but the typically available commands are not anything like on Windows. I'd just stay away from it.
hmmm thank you, i will go see more of love.filesystem