File I/O Commands

See Also: File I/O Functions, Appending Data to an Output File, Sequential File I/O

Command

Purpose

Append_Output

To add output to a sequential file.

Channel Command Component

To enable concurrent opening of more than one output destination or input source, and to enable switching from on channel to another as an application executes.

Close_Input

To close a sequential input file.

Close_Output

To close a sequential output file.

CopyFile

Copies one or more disk files

Direct_Input

To open a file or device for sequential input.

Direct_Output

To write output to a sequential file, a printer, or the Windows clipboard.

EraseFile

Deletes one or more disk files

File_Exist

Checks whether a file or folder exists

Flush_Output

Immediately forces a write of cached output data.

Get_Channel_Position

Gets the value of the file offset of a sequential file channel.

Get_Channel_Size

To determine the size (in bytes) of a sequential file currently being used for input or output.

Get_Current_Directory

To return the full path of the user's current folder, including the drive letter.

Get_Current_Input_Channel

To retrieve the number of the sequential file channel currently being used for input.

Get_Current_Output_Channel

To retrieve the number of the sequential file channel currently being used for output.

Get_Directory

To obtain the current working folder for a given drive letter.

GetDskInfo

To return the status of a specific drive.

Get_File_Mod_Time

Returns the date and time of the last time a file was changed.

Get_File_Path

Returns the path (among those listed in DF_OPEN_PATH) for a specified file.

Get_Windows_Directory

Returns the path of the folder in which Windows is installed.

Make_Directory

To create a new disk folder.

Make_Temp_File

To create a new, empty disk file.

Read

To read "words" of data from a sequential file, device, or text field and move them to one or more variables.

Read_Block

To read a block of data of a specified size from a sequential file, device, or text field and move it to a variable.

Read_Hex

To read binary data as two-byte hexadecimal numbers.

Readln

To read a line of data from a sequential file, device, text field, or image, and move its "words" to one or more variables.

Remove_Directory

To remove a disk folder.

RenameFile

To change the name of a disk file.

Set_Channel_Position

To set the input/output channel position pointer to a position.

Set_Directory

To obtain the current working folder for a given drive letter.

Valid_Drive

To check if a given drive letter is valid on the system.

Write

To write the values of one or more variables to a sequential file, device or text field.

Write_Hex

To write binary data as two-byte hexadecimal numbers.

Writeln

To write the values of one or more variables to a sequential file, device, or text field as a line of data.