Share via


Low-Level File Functions

These functions make it possible for you to manipulate files and communication ports at a low level. Low-level file functions should be used carefully, especially when manipulating table files. Before using these functions, test them on sample files before using them on files that contain important data.

Use

To

FCHSIZE( ) Function

Change the size of a file opened with a low-level file function.

FCLOSE( ) Function

Flush and close a file or communication port opened with a low-level file function.

FCREATE( ) Function

Create and open a low-level file.

FEOF( ) Function

Determine whether the file pointer is positioned at the end of a file.

FERROR( ) Function

Return a number corresponding to the most recent low-level file function error.

FFLUSH( ) Function

Flush to disk a file opened with a low-level function.

FGETS( ) Function

Return a series of bytes from a file or a communication port opened with a low-level file function until it encounters a carriage return. 

FOPEN( ) Function

Open a file for use with low-level file functions.

FPUTS( ) Function

Write a character string, carriage return, and line feed to a file opened with a low-level file function.

FREAD( ) Function

Return a specified number of bytes from a file opened with a low-level function.

FSEEK( ) Function

Move the file pointer in a file opened with a low-level file function.

FWRITE( ) Function

Write a character string to a file opened with a low-level file function.

HEADER( ) Function

Return the number of bytes in the header of the current or specified table file. 

See Also

Other Resources

Programming

Language Categories