In
Message-ID:<
fa5615b0-a19b-4c4c...@googlegroups.com>,
Thom <
ts2...@gmail.com> wrote:
>On Sunday, September 10, 2017 at 6:44:48 PM UTC-5, Arthur T. wrote:
>> I use Regina REXX. For almost all file I/O, I use REGSTEMREAD &
>> REGSTEMWRITE. REGSTEMWRITE appears to always start writing at the
>> beginning of the file. I'd like to be able to append the data, i.e.
>> add it after the last line of the existing file.
<snip>
>> I couldn't find anything in the last few years of this
>> newsgroup, and my web search didn't turn up anything. The
>> information isn't there or my search-fu isn't strong today.
>I searched the web for any examples of REGSTEMWRITE or any other APPEND and came up empty. Documentation for REGSTEMSWRITE is negligable.
So, if there's anything out there, it's not just me who can't
find it. Thanks for trying. This is one of those times I was hoping
to be proved wrong.
>Using Regina Stream IO I wrote this to just play around.
And, thanks for the example. I've found that LINEOUT
automatically does append unless told otherwise, so I've added this
code to my program, in place of the REGSTEMWRITE:
if reply = "A" then /* user asked for APPEND */
do
do i = 1 for outline.0
x = lineout(filename, outline.i)
end
exit 0
end
I could do LINEOUT in stead of REGSTEMWRITE in both cases, but I
didn't want to change working code more than necessary. Plus,
several releases back, I found that LINEOUT was buggy. It's probably
fixed by now, but I still avoid it by habit. And, since I also came
from a mainframe background, I find REGSTEM... more familiarly
comfortable as a replacement for EXECIO.