RangerX
Member
Why is "working directory" needed for using the file reading functions when its not needed for file saving functions?
I fixed a bug in my game tonight and I don't understand why it actually worked...
Its odd, I create a file where I save the built in variable called "score". Then somewhere else I go read that file to update my score. Sounds easy enough but at first it wasn't working.
Looks like I had to put "working_directory" at the beginning of my path for using "file exist" and the file read functions. It makes sense but why is it NOT needed for using the file write functions? When I create/save my score file, I am not using the "working_directory" variable and GMS knows where to find my folder still....
Isn't it odd?
I fixed a bug in my game tonight and I don't understand why it actually worked...
Its odd, I create a file where I save the built in variable called "score". Then somewhere else I go read that file to update my score. Sounds easy enough but at first it wasn't working.
Looks like I had to put "working_directory" at the beginning of my path for using "file exist" and the file read functions. It makes sense but why is it NOT needed for using the file write functions? When I create/save my score file, I am not using the "working_directory" variable and GMS knows where to find my folder still....
Isn't it odd?
Last edited: