Darwin Help

Back to Index

OpenAppending

Function OpenAppending


Calling Sequence  OpenAppending(fname)
OpenAppending(terminal)
OpenAppending(previous)
Parameters
NameTypeDescription

fname filename 
terminal system variable 
previous system variable 
Return Type  NULL
Synopsis If the parameter is the system name "terminal", all subsequent output generated by Darwin is sent to the standard output. This is typically the terminal. Otherwise, all subsequent output generated will be appended to the file "fname". Fname can be a name or an entire path. If no file named "fname" exists, Darwin creates such a file. The options "terminal" and "previous" behave the same way as they do for OpenWriting.
Examples
> OpenAppending('~hallett/bankaccount');

> print('Debit 100000 SFr.');
 <all output sent to file> 
> OpenWriting(terminal);
>
See also FileStat,   inputoutput,   OpenReading,   OpenWriting,   ReadData,   ReadLine,   ReadOffsetLine,   ReadRawFile,   ReadRawLine