GM: file text open read

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is file_text_open_read(fname). It appears incorrectly here because of technical restrictions.
The correct title of this article is file_text_open_read(). 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 read from it into Game Maker. It returns the id of the file you opened so whenever you try to read from 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).

This article was originally found at the Game Maker Knowledge Base, contributed by Ari.
See the talk page for details
Personal tools