Carriage Return Stripper (CRS.BAS)
Carriage Return Stripper by Bernie Bildman and Gary Foster, 5
Description
Carriage Return Stripper by Bernie Bildman and Gary Foster, 5
From the Antic disk of January 1986 (Vol. 4 No. 9).
From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.
What is in this file
Atari BASIC program · 616 bytes
- Dialect
- Atari BASIC
- Lines
- 16
- Variables
SOURCE$,DEST$,A
BASIC listing (16 lines)
10 REM CARRIAGE RETURN STRIPPER
15 REM BY BERNIE BILDMAN WITH ADDITIONS BY GARY FOSTER
60 DIM SOURCE$(15),DEST$(15)
70 ? "↰"
80 ? "Name of source file (include device)":INPUT SOURCE$
90 ? "Name of destination file (include device)":INPUT DEST$
100 OPEN #1,4,0,SOURCE$
110 OPEN #2,8,0,DEST$
120 TRAP 150:GET #1,A:IF A=155 THEN 160
130 PUT #2,A
140 GOTO 120
150 PUT #2,155:END
160 GET #1,A:IF A<>155 THEN PUT #2,32:PUT #2,A:GOTO 120
170 PUT #2,A:PUT #2,A
180 GET #1,A:IF A=155 THEN PUT #2,A:GOTO 180
190 GOTO 130
