Siebel VB Language Reference > Quick Reference: VB Statements and Functions >

VB File Functions: File Input/Output


The following functions and statements are for file input and output.

Function or Statement
Purpose
For More Information

Close

Closes a file

Close Statement

Eof

Checks for end of file

Eof Function

FreeFile

Returns the next unused file number

FreeFile Function

Get

Reads bytes from a file

Get Statement

Input Function

Returns a string of characters from a file

Input Function

Input Statement

Reads data from a file or from the keyboard

Input Statement

Line Input

Reads a line from a sequential file

Line Input Statement

Loc

Returns the current position in an open file

Loc Function

Lock

Controls access to some or all of an open file by other processes

Lock Statement

Lof

Returns the length of an open file

Lof Function

Open

Opens a disk file for I/O

Open Statement

Print

Prints data to a file or to the screen

Print Statement

Put

Writes data to an open file

Put Statement

Reset

Closes all open disk files

Reset Statement

Seek Function

Returns the current position for a file

Seek Function

Seek Statement

Sets the current position for a file

Seek Statement

Spc

Outputs a given number of spaces

Spc Function

Tab

Moves the print position to the given column

Tab Function

Unlock

Controls access to some or all of an open file by other processes

Unlock Statement

Width

Sets the output-line width for an open file

Width Statement

Write

Writes data to a sequential file

Write Statement

Siebel VB Language Reference