Please enable JavaScript to view this site.

ESL Documentation

The ESL File I/O Library contains the subroutines shown in the following table. Be sure to include fileio.inc before using any of these. To determine whether a routine has been successful, the value of the built-in function "errorlevel" should be examined. If the routine has completed successfully then "errorlevel" will equal the constant FIO_E_ERRORFREE (value zero) as defined fileio.inc. See the individual subroutine descriptions for more information.

Subroutine Name

Operation

CloseFile( )

Close a file.

CreateDirectory( )

Create a directory.

DeleteFile( )

Delete a specified file.

FileToHexString( )

Import a files into a string converting each byte into a Hexadecimal pair.

GetError( )

Set a string variable to an error message.

GetFullPath( )

Obtain the absolute Path of a file.

GetModified( )

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

GetTempFileName( )

Generate a unique file name for a specified directory.

GetTempPath( )

Determine the location of the temporary directory.

HexStringToFile( )

Create a binary file from a string contain Hexadecimal characters.

IsDirectory( )

Determine if a specified file is a directory.

ListDirectory( )

List the files in a directory.

OpenFile( )

Open a file.

Read lineNumber( )

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.

ReadRecordAt line( )

Read a line from a file into a record.

RemoveDirectory( )

Delete a specified 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.

SetEBCDICCodePage( )

Change the code page conversion tables used to process EBCDIC files.

WriteByte( )

Output a single 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 16 bit word value to a file.