This documentation is archived and is not being maintained.

Binary File Access

Visual Studio .NET 2003

Use binary access when it is important to keep file size small. Because binary access doesn't require fixed-length fields, the type declaration can omit the string length parameters. This enables you to conserve disk space by building variable-length records.

In This Section

Opening and Closing Files for Binary Access
Describes how to use the FileOpen and FileClose functions to access a file.
Reading from and Writing to a File Opened for Binary Access
Describes how to read from and write to a file using the FilePut, FilePutObject, FileGet and FileGetObject functions.

Related Sections

File Access with Visual Basic Run-Time Functions
Covers processing files directly to create, manipulate, and store text and other data.
Accessing Files with FileSystemObject
Covers using FileSystemObject to create and manipulate files.