Click or drag to resize

FileWriteAllLines Method (String, IEnumerableString, PathFormat)

[AlphaFS] Creates a new file, writes a collection of strings to the file, and then closes the file.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static void WriteAllLines(
	string path,
	IEnumerable<string> contents,
	PathFormat pathFormat
)

Parameters

path
Type: SystemString
The file to write to.
contents
Type: System.Collections.GenericIEnumerableString
The lines to write to the file.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions
Remarks
The default behavior of the method is to write out data by using UTF-8 encoding without a byte order mark (BOM).
See Also