How can i use file.Write to write outside of data folder ?
4 replies, posted
Hi,
I wanted to write outside of the data folder on my server, i tried with
file.Write("test.txt", "test")
It created a .txt called test at the data folder root, i then tested
file.Write("./test.txt", "test")
But it didn't do anything...
I wonder if it's possible ?
Not possible. There are binary modules to write outside of the data folder, though.
The module would need to be imported on my server ?
2nd question : If i need to do this but clientside, all the clients would need this module right ?
You need to place binary modules in the lua/bin folder. And yes, clients would also need the binary module, so what you're asking for isn't feasible for clientside use.
So it's basicly impossible to write outside of data folder clientside, allright Thanks !
Sorry, you need to Log In to post a reply to this thread.