Writing to Files in Visual Basic
This section lists tasks involving writing to files.
In This Section
How to: Write Text to Files in Visual Basic
Demonstrates how to write to text files.How to: Append to Text Files in Visual Basic
Demonstrates how to append text to a text file.How to: Write to Binary Files in Visual Basic
Demonstrates how to write to a binary file.How to: Write Text to Files in the My Documents Directory in Visual Basic
Demonstrates how to create and write to a new text file in the My Documents directory.How to: Write Text to Files with a StreamWriter in Visual Basic
Demonstrates how to write to a file with a System.IO.StreamWriter object.
Reference
FileSystem
Describes the My.Computer.FileSystem object and its methods and properties.OpenTextFileWriter
Describes the OpenTextFileWriter method.WriteAllBytes
Describes the WriteAllBytes method.WriteAllText
Describes the WriteAllText method.
Related Sections
Reading from Files in Visual Basic
Lists tasks involving reading from files.Creating, Deleting, and Moving Files and Directories in Visual Basic
Lists tasks involving creating, deleting, moving, and renaming files and directories.File, Directory, and Drive Properties in Visual Basic
Lists tasks involving determining file, directory, and drive properties.How to: Write to the Clipboard in Visual Basic
Demonstrates how to write data to the Clipboard.File Encodings (Visual Basic)
Provides an overview of file encodings.