• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Legacy GM Something odd about the file handling...

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?
 
Last edited:
Top