Please enable JavaScript to view this site.

ESL Documentation

The File I/O Library (FILEIO.INC) subroutines facilitate reading and writing ASCII or EBCDIC files to and from your ESL programs.

 

This section discusses the File I/O Library in the following order:

 

Overview of the File I/O Library

record Definition

OpenFile( ) and CloseFile( ) Subroutines

Input Subroutines

Output Subroutines

Parameter Subroutines

Error Handling

File Information

 

The following table lists the File I/O subroutines.

Subroutine Name

Operation

CloseFile( )

Close a file.

CreateDirectory( )

Create a directory.

DeleteFile( )

Delete a file.

FileToHexString( )

Input a binary file to a string using Hexadecimal encoding.

GetError( )

Set a string variable to an error message.

GetFullPath( )

Obtain the full absolute path to a file or directory.

GetModified( )

Set a string variable to a time date stamp to when the file was modified.

GetTempFileName( )

Obtain a unique file name within a directory.

GetTempPath( )

Obtain the path to the system designated temporary directory.

HexStringToFile( )

Output a Hexadecimal encoded string to a file.

IsDirectory( )

Determine whether a path points to a directory.

ListDirectory( )

Create a list of files and directories with a directory.

OpenFile( )

Open a file.

ReadLineNumber( )

Read a line from a file into a string variable.

ReadNext( )

Read the next line from a file into a variable.

ReadNextRecord( )

Read the next line from a file into a record.

ReadRecordAtLine( )

Read a line from a file into a record.

RemoveDirectory( )

Delete a Directory.

SetBufferSize( )

Change the size of the I/O buffer.

SetIndexSize( )

Change the I/O index buffer size.

SetTabSize( )

Define the number of columns between tab stops.

SetBufferSize( )

Change the size of the I/O buffer.

WriteByte( )

Output a byte value to a file.

WriteRecord( )

Output the variables specified by a record definition to a file.

WriteString( )

Output a string value to a file.

WriteWord( )

Output a word value to a file.