Title: Text Code
1Text Code
ÿd Ù short exercise n Ù program date Feb
28,2005 ä "
" ü NME ç "Ed Kellner"
DDT ç "02/28/05" , "" NME, DDT,"" iª
"
"
This is the way the code of a BASIC program
looks, when opened in NOTEPAD. The code is in a
condensed form.
2Text Code
- We want a method to be able to save the program
code so we can look at it using a standard, ASCII
text editor.
100 ' short exercise 110 ' program date Feb
28,2005 130 PRINT "
" 140 NME "Ed Kellner" 150
DDT "02/28/05" 160 PRINT "" NME,
DDT,"" 170 PRINT "
"
3Text Code
- Saving program code from a BASIC editor
SAVElabx
- To save program code is ASCII format, we need
to tell the BASIC editor to convert it to ASCII
at the SAVE command
SAVEltfile name.extgt, a ? a means convert to
ASCII character SAVElabx.bas,a
4Text Code
- When using a text editor for the code, changes
made to the text version are NOT automatically
saved to the BASIC editor. - You must LOAD the new version into BASIC to test
it.
5Text Code
- Opening the code in NOTEPAD (do not use WORD,
WORDSTAR, or even WORDPAD. These to do not
always save documents in pure ASCII text format.
6Text Code