AppendAllText Method

File.AppendAllText Method

 

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

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAppendAllText(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.

System_CAPS_pubmethodSystem_CAPS_staticAppendAllText(String, String, Encoding)

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

Return to top
Show:
© 2016 Microsoft