VFile.AppendAllLines Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
AppendAllLines(String, IEnumerable<String>)
Method appends contents
to a file identified by the path
.
Declaration
public static void AppendAllLines(string path, IEnumerable<string> contents)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
IEnumerable<String> | contents | The lines to be appended to the file. |
Remarks
Method creates the file if it does not exist, opens the file, writes the content and closes the file.
AppendAllLines(String, IEnumerable<String>, Encoding)
Method appends contents
to a file identified
by the path
and using a encoding
.
Declaration
public static void AppendAllLines(string path, IEnumerable<string> contents, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
IEnumerable<String> | contents | The lines to be appended to the file. |
Encoding | encoding | The character encoding. |
Remarks
Method creates the file if it does not exist, opens the file, writes the content and closes the file.