FileWriteAllLines Method (String, String, Encoding) |
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.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void WriteAllLines(
string path,
string[] contents,
Encoding encoding
)
Public Shared Sub WriteAllLines (
path As String,
contents As String(),
encoding As Encoding
)
public:
static void WriteAllLines(
String^ path,
array<String^>^ contents,
Encoding^ encoding
)
static member WriteAllLines :
path : string *
contents : string[] *
encoding : Encoding -> unit
Parameters
- path
- Type: SystemString
The file to write to. - contents
- Type: SystemString
The string array to write to the file. - encoding
- Type: System.TextEncoding
The character Encoding to use.
Exceptions See Also