GML Can you check to see if a txt file exists before trying to read it in?


Is there an easy way to check if a text file is present in the working directory before trying to open it first to read it in?

I made a save system that works well, but if a user were to try and load the game without the text file in the working directory present the game crashes. I use two txt files so would want to check for both of them before loading, if no text files, skip load.

Is there a dedicated function to check if a file exists by name in the working directory?