WriteAllText(FileInfo, string) Method

Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
Namespace: Z.IO.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static Void WriteAllText(this FileInfo this, string contents)

Parameters

this
Type:  FileInfo
The file to write to.
contents
Type:  String
The string to write to the file.

Return Value

Type:  Void
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)