Click or drag to resize

IVirtualFileSystemWrite Method

Write the script's contents.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
void Write(
	string scriptPath,
	string text
)

Parameters

scriptPath  String
The path of the script which is always in canonical form as returned by Combine(String, String).
text  String
The contents of the script.
Remarks
Implement this method to write the script's contents. Throw an exception if the script can't be read.
Example
IVirtualFileSystem implementation which uses the normal file system.
public void Write(string scriptPath, string text)
{
    File.WriteAllText(scriptPath, text, System.Text.Encoding.UTF8);
}
See Also