io.open, io.read, and io.write alternatives?

Place to get help with not working mods / modding interface.
rater193
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Apr 19, 2017 10:37 pm
Contact:

io.open, io.read, and io.write alternatives?

Post by rater193 »

Hello, i was wondering if it was possible, and if so, how to do, file reading/writing.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: io.open, io.read, and io.write alternatives?

Post by daniel34 »

File writing is possible using write_file: http://lua-api.factorio.com/latest/LuaG ... write_file
File reading is not possible since it would break determinism, see this discussion: viewtopic.php?f=28&t=30285
quick links: log file | graphical issues | wiki
Post Reply

Return to “Modding help”