2 out of 7 rated this helpful - Rate this topic

File.WriteAllText Method

Creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.

Name Description
File.WriteAllText (String, String) Creates a new file, writes the specified string array to the file, and then closes the file. If the target file already exists, it is overwritten.
File.WriteAllText (String, String, Encoding) Creates a new file, writes the specified string array to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.