Reputation: 305
I am using GWBASIC and cannot figure out a few things. Like, when I'm saving a program after running it with F4, it says: File not found
.
Secondly, when I'm using auto command it shows *
with line numbers.
Finally, if I want to take program and its output's print on paper, what should I do?
Upvotes: 1
Views: 825
Reputation: 1001
To print a GW-BASIC program, use the LIST
command.
The optional , filename
parameter specifies the output for the listing. It could be to a file (e.g. to dump the text so another program can load it), or it could be to a printer device (e.g. LPT1:
).
So this should work:
LIST ,LPT1:
See also https://robhagemans.github.io/pcbasic/doc/1.2/#LIST
Upvotes: 2
Reputation: 13855
I am using GWBASIC and cannot figure out a few things. Like, when I'm saving a program after running it with F4, it says: File not found.
Try saving like this:
SAVE"myprog.bas",a
Secondly, when I'm using auto command it shows * with line numbers.
The star (*) on a line means that line already exists and you are overwriting it. If you use the command NEW to wipe-out the program from memory before running 'auto', you won't see those stars on lines.
Finally, if I want to take program and its output's print on paper, what should I do?
1) Save the program as a text file:
SAVE"myprog.bas",a
2) Open the file 'myprog.bas' with a text editor (like Notepad++).
3) Print it.
Upvotes: 2