| Calling Sequence | OpenWriting(fname)
OpenWriting(terminal) OpenWriting(previous) | |||||||||||||||
| Parameters |
| |||||||||||||||
| Return Type | NULL | |||||||||||||||
| Synopsis | If filename is given as the parameter, OpenWriting will open a file named filename and send all subsequent output directed towards the standard output into this file. If filename already exists, it is overwritten. If "terminal" is specified, all subsequent output is directed back towards the standard output (typically the monitor). If filename is "previous", then the current output stream is closed and subsequent output is reverted to the stream which was active before the previous OpenWriting or OpenAppending. | |||||||||||||||
| Examples | > OpenWriting('~hallett/Book/mainfile');
> print('A quick way to create a lot of work for myself');
> OpenWriting(terminal); | |||||||||||||||
| See also | FileStat, inputoutput, OpenAppending, OpenReading, ReadLine, ReadOffsetLine, ReadRawFile, ReadRawLine | |||||||||||||||