|
Post by swoogi on Dec 22, 2019 17:44:41 GMT
Hello,
I want write to a file and write a "A" inside the file after I did some script-things i want to edit the file and replace the "A" with a "B".
How can I do this?
I didnt find any tutorial about file handling.
cheers
|
|
|
Post by AnkuLua on Dec 23, 2019 1:28:00 GMT
Hello, I want write to a file and write a "A" inside the file after I did some script-things i want to edit the file and replace the "A" with a "B". How can I do this? I didnt find any tutorial about file handling. cheers There are many lua file handling tutorials online. www.tutorialspoint.com/lua/lua_file_io.htmwww.lua.org/pil/21.html
|
|
|
Post by maxplay on Jan 15, 2020 20:23:48 GMT
I try use this and don't get sucess😅:
file = io.open("database.txt", "a")
io.output(file) io.write("Okay!") io.close(file)
|
|
|
Post by AnkuLua on Jan 15, 2020 23:39:29 GMT
Use absolute path when open file. file = io.open(scriptPath() .. "database.txt", "a")
|
|