Partager via


File.AppendAllText Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic member AppendAllText(String, String) When it is called by trusted applications, 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 methodStatic member AppendAllText(String, String, Encoding) When called by trusted applications, appends the specified string to the file, creating the file if it does not already exist.

Top

See Also

Reference