This topic has not yet been rated - Rate this topic

File.AppendAllText Method

Appends the specified stringto the file, creating the file if it does not already exist.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member AppendAllText(String, String) Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
Public method Static member AppendAllText(String, String, Encoding) Appends the specified string to the file, creating the file if it does not already exist.
Top
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.