                   FILE DOWNLOAD TIPS

                     BY LARRY JORDAN

IF YOU DOWNLOAD A BASIC FILE AND IT WILL NOT LIST ON YOUR SCREEN
USING THE DOS TYPE COMMAND, YOU SHOULD GO INTO BASIC, LOAD THE
FILE, LIST IT, THEN RESAVE IT USING THE SAME NAME.  IF YOU GET A
`DIRECT STATEMENT IN FILE' ERROR PRINTED ON THE SCREEN WHEN YOU
LOAD THE FILE, THAT MEANS THAT YOU DOWNLOADED A TEXT STATEMENT
(ONE THAT HAS NO LINE NUMBER) WITH THE FILE.  THIS WILL NOT
INTERFERE WITH THE RESAVING OF THE FILE UNLESS THE DIRECT
STATEMENT IS AT THE BEGINNING OF THE FILE; IF THE FILE LISTS OK,
THEN THE DIRECT STATEMENT IS AT THE END OF THE FILE.  IF THE FILE
DOES NOT LIST PROPERLY, THEN THE DIRECT STATEMENT IS AT THE
BEGINNING OF THE FILE AND HAS TO BE REMOVED USING A TEXT EDITOR
(EDLIN) BEFORE THE PROGRAM CAN BE LOADED AND RUN.

DO NOT ATTEMPT TO SAVE A BASIC FILE AFTER GETTING THE `DIRECT
STATEMENT IN FILE' ERROR DURING LOADING WITHOUT LISTING THE
PROGRAM FIRST; YOU WILL DESTROY THE FILE OTHERWISE.

IF YOU WISH TO LOAD A DOWNLOADED FILE (A BASIC PROGRAM OR ANY
OTHER TEXT FILE) INTO A TEXT EDITOR TO CHANGE THE CONTENT OF THE
FILE, YOU WILL HAVE TO FIRST ADD LINE FEEDS TO THE END OF EACH
LINE (AFTER EACH CARRIAGE RETURN) USING THE BASIC PROGRAM
ADDLF.BAS.  A DOWNLOADED FILE THAT OVERWRITES ONE OR MORE LINES
WHEN LISTED USING THE DOS TYPE COMMAND OR WHEN SENT TO THE
PRINTER IS A CANDIDATE FOR THE ADDLF.BAS PROGRAM.  THE PROGRAM IS
LISTED BELOW AND IS CONTAINED IN A STANDALONE FILE UNDER THE SAME
NAME ON THIS DIRECTORY. YOU CAN RUN THIS PROGRAM AGAINST ITSELF
TO ADD LINE FEEDS IF YOU WISH.

5  'PUBLIC DOMAIN PROGRAM TO ADD LINEFEEDS TO DOWNLOADED FILES.
6  'DOWNLOAD FILES WITHOUT LF'S OVERWRITE THE SAME LINE WHEN LISTED.
7  'WRITTEN BY DON WITHROW, 1982
10 CLS:LOCATE 10,1,1
20 INPUT"FILENAME THAT NEEDS LINEFEEDS (WIHOUT DRIVE)";FILEONE$
30 PRINT
35 INPUT"DRIVE FILE IS ON (WITHOUT COLON)";DRIVE$:DRIVE$=DRIVE$+":"
40 OPEN DRIVE$+FILEONE$ FOR INPUT AS #1
50 OPEN DRIVE$+"TEMP" FOR OUTPUT AS #2
60 IF EOF(1) THEN 90 ELSE LINE INPUT #1, THELIN$
70 PRINT #2, THELIN$
80 GOTO 60
90 CLOSE
91 KILL DRIVE$+FILEONE$
92 NAME DRIVE$+"TEMP" AS DRIVE$+FILEONE$
95 PRINT
97 PRINT"FILE ";FILEONE$;" NOW HAS LINEFEEDS AFTER CARRIAGE RETURNS."
98 PRINT:PRINT
100 END

NOTE: You may use a text editor such as EDLIN or WordStar's non-
document mode to edit the above program from the text file you just
downloaded, saving you the trouble of downloading it again.
                                             LDJ
