System::WriteFile

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
);

Parameters

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.

Return Values

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.

Remarks

Example Use
variable fileHandle, fileBuffer = "Hello to the entire world!";
System::CreateFile(L"MyFile.txt",System::CREATE_ALWAYS:fileHandle);
System::WriteFile(fileHandle,fileBuffer);

Requirements

TScript Version: 1.0

Also See

System::CreateFile, System::ReadFile, System::SetFilePointer
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript