FileWriteAllLines Method (KernelTransaction, String, String, PathFormat) |
[AlphaFS] Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void WriteAllLines(
KernelTransaction transaction,
string path,
string[] contents,
PathFormat pathFormat
)
Public Shared Sub WriteAllLines (
transaction As KernelTransaction,
path As String,
contents As String(),
pathFormat As PathFormat
)
public:
static void WriteAllLines(
KernelTransaction^ transaction,
String^ path,
array<String^>^ contents,
PathFormat pathFormat
)
static member WriteAllLines :
transaction : KernelTransaction *
path : string *
contents : string[] *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to write to. - contents
- Type: SystemString
The string array to write to the file. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions See Also