10 INPUT "Name of file";OLD$ 20 OPEN OLD$ FOR INPUT AS #1 30 OPEN "NEW" FOR OUTPUT AS #2 40 IF EOF(1) THEN 90 50 A$=INPUT$(1,#1) 60 IF A$=CHR$(0) THEN 40 70 PRINT #2,A$; 80 GOTO 40 90 CLOSE 100 NAME OLD$ AS "OLDFILE.BAK" 110 NAME "NEW" AS OLD$ 120 END IF A$=CHR$(0) THEN 40 70 PRINT #2,A$; 80 GOTO 40 90 CLOSE 100 NAME OLD$ AS "OLDFILE.BAK" 110 NAME "NEW" AS OLD$ 1