Export (0) Print
Expand All

File.WriteAllLines Method

Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.

Name Description
File.WriteAllLines (String, String[]) Creates a new file, write the specified string array to the file, and then closes the file. If the target file already exists, it is overwritten.
File.WriteAllLines (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.

Community Additions

ADD
Show:
© 2014 Microsoft