Writes a string to a file, creating it or overwriting it. The file extension must be one of the allowed types; a disallowed extension is rejected rather than written.

Parameters

string
required
The file path, relative to the workspace folder.
string
required
The string to write.

Example

Errors