This documentation is archived and is not being maintained.

Sequential File Access

Visual Studio .NET 2003

Using System.IO is the recommended way to create text files, but should you need to use older text file-creation methods, this section shows you how.

Sequential access works best when you want to process files consisting only of text, such as files created with a typical text editor, not files in which data is divided into a series of records. Sequential access is not well suited for storing long series of numbers, because each number is stored as a character string. Thus, a four-digit number would require four bytes of storage instead of the two bytes required to store the same number as an integer.

In This Section

Opening Files for Sequential Access
Describes how to gain access for input, output, and appending characters within a file.
Editing Files Opened for Sequential Access
Explains using Line Input, InputString, and Input to edit files.
Writing Strings to Sequential-Access Files
Discusses how to use Print and Write functions to store strings in text files.

Related Sections

Accessing Files with FileSystemObject
Discusses creating objects, accessing their properties, and using the appropriate methods.