home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG047.ARC
/
SW-CPM.BAS
< prev
next >
Wrap
BASIC Source File
|
1979-12-31
|
512b
|
19 lines
10 PRINT CHR$(26)
20 FILES : PRINT : PRINT
30 INPUT "Input Filename "; INFILE$
40 INPUT "Output Filename "; OUTFILE$
50 OPEN "I",#1,INFILE$
60 OPEN "O",#2,OUTFILE$
70 WHILE NOT EOF(1)
80 A$ = INPUT$(1,#1)
90 IF A$ = CHR$(30) THEN A$ = CHR$(141) + CHR$(10)
100 IF A$ = CHR$(31) THEN A$ = CHR$(160)
110 IF A$ = CHR$(13) THEN A$ = CHR$(13) + CHR$(10)
120 PRINT#2,A$;
130 PRINT A$;
140 WEND
150 CLOSE : END
$ = CHR$(160)
110 IF A$ = CHR$(13) THEN A$ = CHR$(13) + CHR$(10)
120 PRINT#2,A$;
130 PR