## Reading a Block of Text from a File

The Insert | File I/O Command | Reading Commands | Read Block menu option places a command in the Edit window that will read in a block of characters from an open file at execution time. The amount of characters read in is indicated by the size parameter.

The syntax of this command in the Edit window is:

<varname>=File/Read_Block,<fptrname>,<size>

<varname> | This is a variable id for the variable that receives the value indicating success or failure of the read block operation.
<fptrname> | This is the name specified for the file pointer when the file was opened.
<size> | This is the number of characters to read

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

1. Open the Edit window.

2. Placing your cursor on the Read Block command.

3. Press F9.

More:

Sample Code for Read Block