FileWriteAllLines Method (KernelTransaction, String, IEnumerableString, Encoding) |
[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,
IEnumerable<string> contents,
Encoding encoding
)
Public Shared Sub WriteAllLines (
transaction As KernelTransaction,
path As String,
contents As IEnumerable(Of String),
encoding As Encoding
)
public:
static void WriteAllLines(
KernelTransaction^ transaction,
String^ path,
IEnumerable<String^>^ contents,
Encoding^ encoding
)
static member WriteAllLines :
transaction : KernelTransaction *
path : string *
contents : IEnumerable<string> *
encoding : Encoding -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to write to. - contents
- Type: System.Collections.GenericIEnumerableString
The lines to write to the file. - encoding
- Type: System.TextEncoding
The character Encoding to use.
Exceptions See Also