File::WriteAllLines Method
Creates a new file, writes one or more strings to the file, and then closes the file.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | WriteAllLines(String^, IEnumerable<String^>^) | Creates a new file, writes a collection of strings to the file, and then closes the file. |
![]() ![]() | WriteAllLines(String^, IEnumerable<String^>^, Encoding^) | Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file. |
![]() ![]() | WriteAllLines(String^, array<String^>^) | Creates a new file, write the specified string array to the file, and then closes the file. |
![]() ![]() | WriteAllLines(String^, array<String^>^, Encoding^) | Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file. |

