1

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?

George
  • 6,886
  • 3
  • 44
  • 56
SidraM
  • 305
  • 2
  • 4
  • 15
  • 1
    What is the exact text you are typing to try to save the program? Please separate out the multiple questions into separate questions as that makes it easier for them to be answered. – Jason Aller Apr 24 '19 at 18:06
  • 1
    SO is a *question and answer* site. Note that *question* is singular, not plural (it's not *questionS*. You've asked three separate questions, which should each be asked in a separate post. In addition, all three of them are lacking in information. For instance, we can't tell you why you're getting *File not found*, because we don't know anything about how you're *saving a program after running it with F4*. You may want to review the [help] pages, especially [ask], and then come back and [edit] your post. – Ken White Apr 25 '19 at 00:16

2 Answers2

2

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.

Everton
  • 12,589
  • 9
  • 47
  • 59
1

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

David C.
  • 777
  • 8
  • 18