Re: Open a file in Append mode
Anton Ertl <anton-8NJIiSa5LzB3ZGU3T6kWFyEcasqEdqbRs2V0tQ3P5b8@public.gmane.org>
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 29, 2018 at 10:52:29PM -0400, Mario Beaulieu wrote: > Hi, > > Is there such a thing as an Append mode when opening a file, so I can keep adding to an existing file when I re-open it? Something like w/a or r/a? Currently Gforth does not have that. You can use FILE-SIZE and REPOSITION-FILE after OPEN-FILE to get the same effect (as long as no other process appends to the file simultaneously). - anton