TestFile.

WriteAllText(string, bool) Method

Summary

Writes the specified text to a file.
Assembly
Wyam.Testing.dll
Namespace
Wyam.Testing.IO
Containing Type
TestFile

Syntax

public void WriteAllText(string contents, bool createDirectory = true)

Parameters

Name Type Description
contents string The text to write.
createDirectory bool Will create any needed directories that don't already exist if set to true.

Return Value

Type Description
void
GitHub