file_text_open_read(fname)
Jump to navigation
Jump to search
Description
Opens the file with the given name for reading data, creating it if it does not exist, and returns the index for further file operations.
Parameters
Parameter | Data Type | Description |
---|---|---|
fname | string | the name of the file to open for reading data |
Return Values
integer: Returns the index of the file.
Example Call
// demonstrates opening a text file for reading data
var myfile;
myfile = file_text_open_read("text.txt");