file_text_open_write(fname)

From ENIGMA
Jump to navigation Jump to search

Description

Opens the file with the given name for writing 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 writing data

Return Values

integer: Returns the index of the file.

Example Call

// demonstrates opening a text file for writing data
var myfile;
myfile = file_text_open_write("text.txt");