Category : Miscellaneous Language Source Code
Archive   : PCLIST8B.ZIP
Filename : READWRT.CLT

 
Output of file : READWRT.CLT contained in archive : PCLIST8B.ZIP
/* This CLIST demonstrates the file I/O statements. It copies a
/* text file. A closing ^Z is not written.
control noflush asis
write Enter name of file to read
read &filnam
write Enter name of file to write
read &filnam2
error do
set ercc=&lastcc
if &ercc=400 then goto endit
write error &ercc
exit
end
alloc filen &filnam
alloc filou &filnam2 mod
openfile filen
openfile filou output
loop: getfile filen
set filou=&nrstr(&filen)
putfile filou
goto loop
endit: +
error
closfile filen
closfile filou
free filen
free filou
exit


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : PCLIST8B.ZIP
Filename : READWRT.CLT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/