home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1985-12-25 | 640 b | 20 lines |
- 10 SCREEN 0,0:WIDTH 80:CLS
- 15 PRINT "This program copies large ASCII files into smaller ones
- 17 PRINT "(about 23K each) that can then be edited by word-processing
- 18 PRINT "programs with limited file-handling capacity.";:PRINT:PRINT:PRINT
- 20 INPUT "Name of EXISTING file to be broken up";BREAKFILE$
- 30 OPEN BREAKFILE$ FOR INPUT AS #1
- 40 INPUT "Name of first small file to be created";NEWFILE$
- 50 OPEN NEWFILE$ FOR OUTPUT AS #2
- 60 FOR I = 1 TO 512
- 70 IF EOF(1) THEN GOTO 200
- 80 LINE INPUT #1,LINEDATA$
- 90 PRINT #2,LINEDATA$
- 100 NEXT I
- 110 CLOSE 2
- 120 INPUT "Name of next small file to be created";NEWFILE$
- 130 GOTO 50
- 200 CLOSE
- 210 PRINT:PRINT:PRINT "Finished."
- 220 END
-