I know I can overwrite a file using something like:
file:write("overwritten");
If file is opened in "w" mode. But somehow I cannot overwrite current file script.
Is this kind of thing not allowed? or what?
Because I would like to update my script, by making request online. And I don't want to write into another file, instead as much as possible overwrite current file.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
estehmanis
I know I can overwrite a file using something like:
If file is opened in "w" mode. But somehow I cannot overwrite current file script.
Is this kind of thing not allowed? or what?
Because I would like to update my script, by making request online. And I don't want to write into another file, instead as much as possible overwrite current file.
How to do this?
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.