File Management Instructions

Instruction

Action

FCLOSE

Close the specified file.

FCOPY

Copy a file from source to destination.

FEOF

Determine whether the end of a file has been reached.

FGETC

Read a character from a file.

FGETS

Read a character string from a file.

FMOVE

Move a file from source to destination.

FOPEN

Open the specified file in accordance with the specified access mode.

FPUTC

Write a character to a file.

FPUTS

Write a character string to a file.

FREAD

Read N data items of the same type from a file and store them in a buffer allocated by ALLOC_BUFFER.

FSEEK

Move the file pointer to a new position.

FSTAT

Enable size and date information on a file to be obtained.

FWRITE

Write N data items of the same type to a file from data stored in a buffer allocated by ALLOC_BUFFER.

RENAME

Rename a file.

UNLINK

Delete a file.

Before using any of the file management instructions, except FSTAT, RENAME, UNLINK, FILETOBUF or BUFTOFILE, you must first open the file using an FOPEN instruction.

Before any program including the FOPEN instruction ends, it must execute an FCLOSE instruction.