File Input and Output Quick Reference
The following table lists methods that you can use to manipulate data in a file.
Statement | Purpose | Reference |
---|---|---|
Eof |
Determines if the end of an open file has been reached. |
|
Get |
Reads the content of a file, and then places this content in a variable. |
|
Input |
Returns a string of characters from a file. |
|
Input filenumber, variable |
Reads data from a file, and then saves this data to different variables. |
|
Line Input |
Reads a line from a sequential file, and then saves it in a string variable. |
|
Loc |
Returns the current offset of a file. |
|
Prints data to a file or to the screen. |
||
Put |
Writes a variable to a file. |
|
Seek filenumber |
Returns the current position for a file. |
|
Seek filenumber, position |
Sets the position of the next read or write operation in an open file. |
|
Spc |
Prints a number of spaces. |
|
Tab |
Sets the current print position. |
|
Width |
Sets the output line width for an open file. |
|
Write |
Writes data to a sequential file. |