Hello,
I'm doing a script that works with persistant data and I'm using a txt file in the data folder to do that.
File.Write only works when there is no file with that name, meaning it creates it and adds data.
File.Append Works.
File.Write doesn't overwrite data when the file already exists.
I would like for it to overwrite what ever is in that txt file.
couldn't you just check if the file exists and delete it if it does? Then you could remake a file and write whatever data you wanted.
also see: file.Write "Writes the given string to a file. Erases all previous data in the file. "
It should Erase it but it doesnt, I will try deleting it then
Sorry, you need to Log In to post a reply to this thread.