|
I used a Serializer script for a save system, but when I use a path that doesn't have the save file inside, it doesn't work. It says that it cannot find the file. FileMode.Create seems not to work, in creating a new file. I also used File.Exists to check if the file exists, and if not I used File.Create, but it did not work. Update: It show me an error when I try to access an empty or missing file.
(comments are locked)
|

What exact error message are you seeing?
For that matter, which platform are you on?
Not sure what you mean by this. You're using a path that doesn't include the name of the file you're trying to open, and still expect it to open the file? Perhaps I'm missing something.
I was trying to Load the game data from the save file from the Start Function, so when the file was missing or empty, i got an error :X
So I used to check if the file exists (in javascript), and if it does then load the data. I don't know how to check if the file is empty.