Posted 12 August 2013 - 07:59 PM
So I was playing around with the fs api trying to make a program with savable settings. I made this small program while testing:
If someone could explain why this happened and how to fix it, that would be great.
Help is appreciated!
Thanks! :D/>
h = fs.open("settings","w")
h.write("--Testing comment")
h.close()
h = fs.open("settings","a")
h.writeLine("Add below the comment")
h.writeLine("Hello")
h.writeLine("Hi")
h.writeLine("Hey")
h.close()
I was just messing around so none of this really does anything useful. So now the file name settings looks something like this:
--Testing comment
Hello
Hi
Hey
I wanted to change some stuff so I tried to delete settings but I got this error:
Delete:9: Access denied
I know you get this when trying to delete like one of the main files but I don't see why it wouldn't let me delete it here.If someone could explain why this happened and how to fix it, that would be great.
Help is appreciated!
Thanks! :D/>