Input and Output Summary

Input and Output Summary (Visual Basic)

Visual Basic language keywords and run-time library members are organized by purpose and use.


Language element

Access or create a file.


Close files.

FileClose , Reset

Control output appearance.

Format , Print, SPC, TAB, FileWidth

Copy a file.


Get information about a file.

EOF , FileAttr, FileDateTime, FileLen, FreeFile, GetAttr, Loc, LOF, Seek

Get or provide information from/to the user by means of a control dialog box.

InputBox , MsgBox

Manage files.

Dir , Kill, Lock, Unlock

Read from a file.

FileGet , FileGetObject, Input, InputString, LineInput

Return length of a file.


Set or get file attributes.

FileAttr , GetAttr, SetAttr

Set read-write position in a file.


Write to a file.

FilePut , FilePutObject, Print, Write, WriteLine

© 2016 Microsoft