next up previous contents
Next: File Pointer Offset Up: Input and Output Functions Previous: Input and Output Functions

Appending to a File

Calling Sequence:
AppendFile(filename)
Parameters:
file : { filename, terminal}

Returns: void

Synopsis: If the parameter is the system name terminal, all subsequence 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 file. If no file named file exists, Darwin creates such a file.

This functions allows file to specify a path.

Examples:

> AppendFile('~/hallett/bankaccount');
> print('Debit 100000 SFr.');
> WriteFile(terminal);

See also: WriteFile




Gaston Gonnet
1998-09-15