GM: file text open write
From GMpedia.org Wiki
- The correct title of this article is file_text_open_write(fname). It appears incorrectly here because of technical restrictions.
- The correct title of this article is file_text_open_write(). It appears incorrectly here because of technical restrictions.
Arguments
fname = the name of the file you want to open including the directory.
Limitations
none
Note: Please remove limitations and port them in the "Remarks" section at the end of the article.
This will open a file so you can write into it from Game Maker. It returns the id of the file you opened so whenever you try to write to it, you use this id. You have to include the directory of the file you want to open but you can use the variables working_directory for the folder where the game is being run from or temp_directory for the temp folder(if you included files and extracted them to there). If the file doesn't exist, Game Maker will create it. This will erase everything that is in the file before.
This article was originally found at the Game Maker Knowledge Base, contributed by Ari.
See the talk page for details
See the talk page for details

