| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rexx |
On Monday, 01-02-1995 Bill Hemenway wrote to All about "REXX" as
follows:
BH> Is there a REXX function that will allow me to write to
BH> a text file that already exists without wiping out what
BH> is already in the file. WHat I want to do is have say
Hi Bill,
You will need to call the STREAM() function twice or thrice:
path_filename = 'D:\DATA\Some_old_file_or_other'
. . .
/* Open file for read & write */
IF STREAM(path_filename,'C','OPEN') == 'READY:' THEN
DO
/* Position at current end of file */
CALL STREAM path_filename,'C','SEEK<0'
/* Write an extra record */
CALL LINEOUT path_filename,Output_record
/* Now close the file */
CALL STREAM path_filename,'C','CLOSE'
END
ELSE /* It's locked */
SAY 'Unable to open '||path_filename
Note the double '=' in the comparison. This forces exact string
comparison instead of 'numeric fuzz' constrained comparison. It can
save you some debugging anguish.
I hope this is something like what you want.
Regards
Dave
* KWQ/2 1.2i * Read the docs. Wow, what a radical concept!
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 109/347 2 7 3615/50 229/2 12/2442 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.