Input/Output

Element

Description

EOF function

Returns a flag denoting the end of a file

FileAttr function

Returns the file-access mode for a file opened using the FileOpen statement

FileClose function

Closes one or more open files

FileGet, FileGetObject functions

Read from a file to a variable

FileLen function

Returns the size of an open file

FileOpen function

Opens a file

FilePut, FilePutObject functions

Writes from a variable to a file

FileWidth function

Sets the line width of a file opened using the FileOpen function.

FreeFile function

Returns the number of the next available file

Input function

Reads delimited data from a sequential file

InputString function

Reads a designated number of characters from a file

LineInput function

Returns a string containing a line read from a file

Loc function

Returns the current position of the read/write pointer in a file

Lock function

Locks a file, section of a file, or record in a file to prevent access by another process

LOF function

Returns the size of an open file in bytes

Print function

Writes formatted data to a sequential file

PrintLine function

Writes formatted data followed by a linefeed to a sequential file

Reset function

Closes all open files

Seek function

Returns the position of the file pointer

Seek procedure

Sets the position of the file pointer

Spc function

Inserts spaces between expressions in output

Tab function

Moves the text-insertion point ...

Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.