Writing to Files in Visual Basic
Visual Studio 2005
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
- My.Computer.FileSystem Object
-
Describes the My.Computer.FileSystem object and its methods and properties.
- My.Computer.FileSystem.OpenTextFileWriter Method
-
Describes the OpenTextFileWriter method.
- My.Computer.FileSystem.WriteAllBytes Method
-
Describes the WriteAllBytes method.
- My.Computer.FileSystem.WriteAllText Method
-
Describes the WriteAllText method.