Create a Program file to use with
GWBasic from the index of programs below:
The links below display instruction files and program files. Any of
them may be printed out using your browser. However, we also wish to
copy the program files to our mass storage device so they may be run
using the GWBasic
interpreter. There are several ways to do this.
Use the
Browser's Save as function
The easiest way to do this is to use the browser to save the program
text to a program file on the disk using the file menu.
Click on the link, in the index below to bring up a program file.
Click on the File
function in the menu at the top of the browser's display.
Scroll down to the Save
Page as.... function.
(
control+S serves selects this function on my browser)
Follow the Wizard to select a location on your disk and save the file
as a text file (filename.txt)
GWBasic can
run this program as it is (filename.txt);
however, by convention, it should be renamed to (filename.bas).
To run the program, drag and drop the program file into a GWBasic.exe icon or
to an shortcut to a GWBasic.exe
icon.
Copy the program text using the
clip-board buffer
An alternate method to copy the code to a program file on the hard
drive is to use the clipboard.
First prepare an empty plain text file on the hard drive using Notepad
or some other plain text format.
Right click in the folder (or the desktp) where you want to create the
file.
Rename the new text file.txt to a name of your choice with a dot bas
extension.
Open it to receive the text you wish to copy from the browser by double
clicking on the file's icon.
Click on the browser's display with the program's text, to change the
focus to that page.
Type control+A (or select Edit/ Select all from the browser's function
menu. The entire text should become highlighted.
Type control+C (or select Edit/ Copy from the menu, to copy the text
into the Window's clip-board buffer.
Click on the open text file that was created earlier to place focus on
it as an object.
Type control+V (or select Edit/ Paste from the menu in the text file to
copy the text from the clipboard to the text file.
Close the text file with your selected name and dot bas extension and
it is ready to be run under GWBasic.