OpenAppend
OpenAppend("file-name")
opens a file and returns an OutputStream to which writes are appended.
Examples
>> f = FileNameJoin({$TemporaryDirectory, \"test_open.txt\"})/tmp/test_open.txt
>> str = OpenWrite(f);
>> Write(str, x^2 - y^2)
>> Close(str);
FilePrint
prints the file content:
>> FilePrint(f)
as:
x^2 - y^2
>> str = OpenAppend(f);
>> Write(str, x^2 + y^2)
>> Close(str);
FilePrint
prints the file content:
>> FilePrint(f)
as:
x^2 - y^2x^2 + y^2
Implementation status
- ✅ - full supported