Reading from Files in Visual Basic

This section explains how to perform tasks that are associated with reading from files.

In This Section

How to: Read from Text Files
Demonstrates how to read from a text file.

How to: Read From Comma-Delimited Text Files
Demonstrates how to read from a delimited text file.

How to: Read From Fixed-width Text Files
Demonstrates how to read from a fixed-width text file.

How to: Read From Text Files with Multiple Formats
Demonstrates how to read from a text file with multiple formats.

How to: Read From Binary Files
Demonstrates how to read from a binary file.

How to: Read Text from Files with a StreamReader
Demonstrates how to use a StreamReader to read from a file.

Reference

FileSystem
Describes the My.Computer.FileSystem object and its members.

ReadAllText
Describes the ReadAllText method.

ReadAllBytes
Describes the ReadAllBytes method.

OpenTextFieldParser
Describes the OpenTextFieldParser method.

OpenTextFileReader
Describes the OpenTextFileReader method.

Storing Data to and Reading from the Clipboard
Explains how to perform tasks that are associated with My.Computer.Clipboard, such as reading data from or writing data to the Clipboard.

Parsing Text Files with the TextFieldParser Object
Provides an overview of reading text files with the TextFieldParser object.

Walkthrough: Manipulating Files and Directories in Visual Basic
Demonstrates how to use the My feature with files and directories.

Walkthrough: Manipulating Files by Using .NET Framework Methods
Demonstrates how to use .NET Framework methods with files and directories.