Page 1 of 1
io.open, io.read, and io.write alternatives?
Posted: Sat Apr 22, 2017 8:52 pm
by rater193
Hello, i was wondering if it was possible, and if so, how to do, file reading/writing.
Re: io.open, io.read, and io.write alternatives?
Posted: Sun Apr 23, 2017 3:42 am
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