AssignFile procedure associates the specified variable with a file.
Associates a file variable with the name of a file. All of the operations performed with this variable are performed with the specified file as well. After calling
AssignFile, the file variable remains associated with the file until the file variable is closed. The
AssignFile procedure cannot be used with a file variable that is already open.
The procedure has the following parameters:
Specifies the file variable, which is associated with the desired file.
Specifies the variable which holds the name of the desired file.