method openForWrite

void openForWrite(string path,bool replace,bool createIfNeeded);

Argumente

Zurückgegebener Wert

This method opens a file on disk for writing only. It will optionally create and or replace the contents of the file. The stream position is set to the end of the file.
var fileStreamObj = shell.serviceManager.basics.fileStream;
var streamWriterObj = shell.serviceManager.basics.rawStreamWriter;

fileStreamObj.openForWrite("c:\\temp\\test.txt", false, false);
streamWriterObj.stream = fileStreamObj;
//see rawStreamWriter method for reading sample

fileStreamObj.close();