System::WriteFile will write to the contents of a file previously opened by System::CreateFile.
public System::WriteFile( OSHandle FileHandle, variable FileContents, Integer Position = TVariable::None );
|FileHandle||From previous call to System::CreateFile.|
|FileContents||a buffer containing the contents to be written to the file.|
|Position||will write to the current file position if default parameter is passed.|
The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.