Any ideas on how this was meant to be when it was designed?
On Fri, Feb 5, 2021 at 9:14 PM Erich Steinböck <erich.steinbo...@gmail.com> wrote: > I understand we can open a file for write access in either REPLACE or > APPEND mode, the latter being the default. Also, rexxpg says "By default, > LINEOUT appends to an existing file." > > But the open() method description in rexxref describes the APPEND option > with "The write pointer cannot be moved anywhere within the extent of the > file as it existed when the file was opened." > > And we have code in place which for s~open('append'); s~lineOut('xxx', 1) > ignores the line number argument for lineOut and unconditionally appends, > whereas for s~open; s~lineOut('xxx', 1) the line overwrites the first > line (as expected). > > Do we have a third WRITE mode - non-APPEND, non-REPLACE - that needs to > be documented? >
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel