| Arguments:
NumberOfFile - A number of the file. This parameter
can be in the range 1 to 10. The parameter is used for identification
of the file in the other functions (CloseFile, Read, Write
and others). Only one file in the same time can hold an unique
number. If the function OpenFile is used with engaged
number, previous file with this number is closed. Ten files
only can be opened at the same time.
Filename - A name of file.
Mode - This parameter determine if the file will be
opened for reading or writing. This parameter can have two
values - "R" or "W".
R - Opens for reading. If the file does not exist
or cannot be found, the OpenFile call fails.
W - Opens for writing or appending to end of file.
Creates the file first if it doesn’t exist. If a file exist
and writing from a begin of the file is needed, you must call
DeleteFile first. |