core

## Reading a Character from a File

The Insert | File I/O Command | Reading Commands | Read Character menu option places a command in the Edit window that reads a single character from the file specified by the filepointername field (see syntax below). It assigns that character to the variable specified in the variable name field.

The syntax of this command in the Edit window is:

<varname> = File/ReadCharacter,<filepointername>

Descriptions for some of the components of this command are:

<filepointername>
This is the ID used to open the file.

<varname>
This is the name of the variable that holds that character.

To access the dialog box associated with this File I / O command:

1. Open the Edit window.

2. Place your cursor on the Read Character command.

3. Press F9.

More:

Sample Code for Read Character