[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BAS FILES



In article <35CF297B.63FAF6A9@gis.net>, gavp@gis.net says...

>How do i save my BAS files in ASCII format ? on GS

The following one-line BASIC code will do it for you, and works in DOS 3.3 or 
ProDOS.

1 HOME:PRINT CHR$(4)"OPEN LISTFILE":PRINT CHR$(4)"WRITE LISTFILE":POKE 
33,33:LIST 2,:PRINT CHR$(4)"CLOSE":END

HOME clears the screen just to make it look cleaner when the line ends, The 
various CHR$(4) commands make DOS 3.3 or ProDOS recognize the commands as 
native to the Operating System command interpreter and not to BASIC. POKE 33,33 
causes the text display routine to not insert any unneccessary spacing into 
your BASIC program listing, which cleans up the text file output nicely. LIST 
2, simply means list all lines from 2 upwards to whatever the last line is, and 
END of course halts execution.