home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib19b.dsk
/
LOWRITE.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
54 lines
1 REM **********************
2 REM * LOWRITE *
3 REM * BY DAVID MEREDITH *
4 REM * COPYRIGHT (C) 1984 *
5 REM * BY MICROSPARC, INC *
6 REM * LINCOLN, MA. 01773 *
7 REM **********************
10 HIMEM: 36864
20 HOME : PRINT "** COPYRIGHT 1984 BY MICROSPARC, INC. **": PRINT
30 PRINT " LOWRITE"
40 PRINT " "
50 PRINT "READS THE TEXT FILE YOU NAME"
60 PRINT "(FORMAT: N<CR>LINE1<CR>LINE2<CR>.."
70 PRINT "..LINEN<CR>), CONVERTS TO LOWER-"
80 PRINT "CASE WHERE APPROPRIATE, AND"
90 PRINT "SENDS THE TRANSLATED FILE TO"
100 PRINT "THE PRINTER"
110 PRINT : PRINT "HIT ANY KEY WHEN READY ";: GET I$
120 PRINT :D$ = CHR$(4)
130 DIM A$(1000)
140 PRINT D$;"BLOAD AUTOCAP.OBJ0"
150 HOME : INPUT "INPUT FILE NAME PLEASE ";F$
160 PRINT "POET'S SWITCH ON (Y OR N)? ": GET I$: PRINT
170 IF I$ = "Y" THEN POKE 38107,1: GOTO 190
180 POKE 38107,0
190 PRINT D$;"OPEN ";F$
200 PRINT D$;"READ ";F$
210 INPUT C
220 FOR X = 1 TO C
230 A$(X) = ""
240 GET I$
250 IF I$ = CHR$(13) GOTO 340
260 POKE 235, ASC(I$)
270 CALL 38109
280 IF PEEK(237) = 2 GOTO 320
290 IF PEEK(237) = 0 GOTO 240
300 A$(X) = A$(X) + CHR$( PEEK(235))
310 GOTO 240
320 A$(X) = A$(X) + CHR$( PEEK(235)) + CHR$( PEEK(236))
330 GOTO 240
340 POKE 235, ASC(I$)
350 CALL 38109
360 IF PEEK(237) = 2 GOTO 380
370 GOTO 390
380 A$(X) = A$(X) + CHR$( PEEK(235))
390 PRINT CHR$(1);A$(X)
400 NEXT X
410 PRINT D$;"CLOSE ";F$: PRINT "DO YOU WANT A PRINTOUT? (Y/N)";: GET A$: PRINT : IF A$ = "N" THEN 470
420 PRINT D$;"PR#1"
430 FOR X = 1 TO C
440 PRINT A$(X)
450 NEXT X
460 PRINT D$;"PR#0"
470 HOME : PRINT "DONE": END