open();
The open method of the File class opens a file. If you do not explicitly open a file, the first readLine, readString, seek, writeLine, or writeString method opens the file automatically. Before the file is opened, set the FileNode class allowCreate and fileName properties and the File class allowReplace, kind, mode, and shareMode properties, as required.