TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: All
from: Eddy Thilleman
date: 1999-11-10 07:57:17
subject: general open file routines

Hello All,

I've written some (I hope) general (ofcourse) REXX file routines, with
internal checking for file errors, these can be used as functions. Is there
interest?

untested sample code to use these functions:

if OpenReadFile( file1 ) & OpenAppendFile( file2 ) then do
  do while Lines( file1 ) = 1          /* while not end of file1 */
    Line = LineIn( file1 )             /* read new line */
    say Line
    written = LineOut( file2, Line )   /* append to file2 */
  end  /* while not end of file1 */
  call CloseFile( file1 )
  call CloseFile( file2 )
end  /* if files are open */

I've these routines (slightly modified) also incorporated into wgetmir.cmd, is 
there interest for this?
I have moved the inputfiles for wget into a separate subdirectory.

  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... ABANDON all hope, ye who press  here!
--- GoldED/2 3.0.1
3615/7
* Origin: Windows95 is a graphic DOS extender (2:500/143.7)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.