filenumber, filename, mode, access, share, recordlength)
An available file number.
The name of the file to open, along with an optional path.
The file-access mode. Options are: OpenMode.Append, OpenMode. Binary, OpenMode.Input, OpenMode.Output, or OpenMode.Random (the default value).
Specifies the allowable operations by the current process. Options
OpenAccess.ReadWrite (the default value), or
Specifies the allowable operations by other processes. Options are:
OpenShare.Shared (the default value),
recordlength(optional; Integer (at most, 32767)
The length of the record (for random access) or of the I/O buffer (for sequential access).
Opens a disk file for reading and/or writing
There are three modes of file access: sequential, binary, and random. The Input, Output, and Append access modes are sequential access modes. Sequential access is designed for text files consisting of individual Unicode characters (and control codes). Most of the file-manipulation functions (LineInput, Print, PrintLine, and so on) apply to files opened for sequential access. Random access is designed to be used with ...