Export (0) Print
Expand All

How to: Write Text to a File 

The following code examples show how to write text to a text file.

The first example shows how to add text to an existing file. The second example shows how to create a new text file and write a string to it. Similar functionality can be provided by the WriteAllText methods.

NoteNote

Visual Basic users may choose to use the methods and properties provided by the My.Computer.FileSystem object for file I/O. For more information, see My.Computer.FileSystem Object.

Example

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft