answersLogoWhite

0

How do you open a Qbasic file?

Updated: 8/10/2023
User Avatar

Wiki User

7y ago

Best Answer

QBASIC GRAPHICS

There any many different things you can draw in QBASIC; ranging from...

-dots

-lines

-rectangles

-circles

-shapes empty/or, filled in(painted)

-you can even do LOGO style programming to draw graphics with; by joining up connected lines

-animations are possible, too

====

QBASIC BUILT-IN HELP FILE + CODE EXAMPLES

In order to view the QBASIC built-in Help file...; first, load the QBASIC program itself...; and, then, do a combination key press of:

[SHIFT] + [F1]

Use the built-in QBASIC Help file to learn more about how to use these 'graphic related' commands, and, more...!

The QBASIC Help file also contains plenty of 'example codes'; which you can just use 'copy & paste'; then, RUN...to see what the output effect will be...???

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

To open up an already saved QBASIC program file...so that you can either get to see it's contents/or else, RUN the program using function key [F5]...

Within the QBASIC IDE/Integrated Development Environment itself; try clicking the menu options above which say...

File > Open

...or, if you prefer using keyboard shortcuts...

[Alt] + [F], then, [O]

...this should open up a File dialog box...which allows you to see the both the current folder you are in/together with the files being listed inside of the File List box.

If you wish to change to a different folder; then, you need to use your mouse to select which particular drive/folder you would prefer to load QBASIC files from, instead.

USING FILENAME/OR ELSE, WILDCARD SYMBOLS TO SEARCH WITH

You can also search for particular files by typing the file name into the Filename box...

program1.bas

Or, if you're not sure exactly what the program name was that you saved/or else, you forgot...; you could try searching for program filename extension type, instead...

*.bas

...the asterix is a wildcard symbol which means show 'any'. In this case, the command is saying...show ALL files, in the current folder directory, containing 'any' file name; and, also, has 3 letter filename extension ending in: (.bas).

*NOTE* :QBASIC files are, normally, saved using:

[filename] + dot: [.] + [3 letter filename extension]

...the (.bas) filename extension indicates this is a QBASIC program type of file.

But, you can also search for files with different extension meanings, as well...

*.txt

...Text extension files

*.csv

...Comma Seperated Value files

*.dat

...DATA files

/-etc.

Another thing you can try is...

*.*

...which just means: show (ANY filename.ANY filename extension); or, in other words, show ALL files.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

LAUNCHING QBASIC FROM INSIDE OF WINDOWS

Left double click on the program icon called:

qbasic.exe

...then, the QBASIC IDE/Integrated Development Environment will load.

The QBASIC IDE includes...

-> QBASIC Editor Screen (where you type in your programs)

-> QBASIC Output Screen (where you view your program output)

-> An Immediate Window(where you can evaluate a single line of QBASIC code)

-> QBASIC Help file(which can be launched by pressing function key: [F1]; the Help file includes a list of all QBASIC keywords; together with explanations, and, example QBASIC program codes that you can choose to 'copy & paste'; then, RUN)

Usually, the first screen that appears will ask you if you wish to see Help, first; to say, no; then, simply, press [ESC] key to continue...; this takes you straight into QBASIC 'blue' Editor Screen where you can type in your program. Type into QBASIC editor the following line of code.

PRINT "Hello, world! From QBASIC"

...in order to RUN/execute the program you just wrote; press function key [F5]...

...the 'black' Output Screen should suddenly appear; and, display the following text...

Hello, world! From QBASIC

Press any key to continue...

(Pressing any key...will return you straight back to QBASIC Editor screen; where you can further choose to either keep on Editing/changing your program...then, Re-RUN it/or else, you can chose to Save the program, instead...by using menu options: File > Save. Give the file a name...no more than 8 letters long...; then, click [OK] to save. A 3 letter filename extension will be automatically added on to each new QBASIC file you save: (filename.bas)

To reload a program that you've already saved...use menu options: File > Open...then, search to find the file you wish to load...find it inside of the File list box by clicking on it's name...then, press [OK] to load. Once the file is already loaded into QBASIC Editor screen; again, press function key [F5] to RUN.

USING MS DOS TO LAUNCH QBASIC PROGRAMS

It's also possible to launch QBASIC programs from the MS DOS command line by typing...

C:\>QBASIC.exe filename.bas

...where [filename.bas] is the name of any QBASIC program file which you care to load into the Editor Screen as soon as the QBASIC program starts.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

With your mouse if you double-click on it from outside Qbasic. Otherwise, inside, you'd go to the File menu, select Open, and then open it. Then you can hit F5 to run it.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you open a Qbasic file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you open a saved Qbasic file in QBASIC itself to edit it?

IF THE QBASIC IDE/INTEGRATED DEVELOPEMENT ENVIRONMENT *IS* ALREADY OPEN Inside of QBASIC IDE/Integrated Development Environment...; you load in QBASIC programs as follows... 1. Use your mouse to click the QBASIC Menu option being seen top right... File > Open ...then, browse through the file list box to load your chosen program file. 2. Alternatively, you can also use keyboard short cut... [ALT]+[F], this opens up the file menu...then, press [O] ...does exactly the same as above IF THE QBASIC IDE/INTEGRATED DEVELOPMENT ENVIRONMENT IS *NOT* ALREADY OPEN 3. Another way is to open up a command line window prompt: (>)... Click [Start] button ...then, type: Command .../or, type: Cmd ...at least, one of the above should work... ...and, run the QBASIC program from there... by typing in after the command line prompt: (>)... c:\> cd, means, change directory folder... cd C:\pathToQbasic For example the file path name to where my version of QBASIC is stored here... c:\basic\qb64 So, I would first change to this folder directory by typing in after the prompt: (>)... c:\>cd c:\basic\qb64 ...this changes my command line prompt: (>) to say... c:\basic\qb64> Inside of the [qb64] folder directory, I wrote a very simple program called: hw.bas ...which contains the following single line of code... PRINT "Hello, world!" I can launch both the QBASIC program: [qb64.exe]/and, at the same time load in my chosen program file: [hw.bas], by typing after the command line prompt: (>)... C:\Basic\qb64>qb64 hw.bas ...the QBASIC program instantly loads: [qb64.exe]/with the program file [hw.bas] already being displayed inside of the Editor Screen. Next, I only need to press function key [F5] to RUN/make that program file execute... QBASIC Output Screen... Hello, world! Press any key to continue...


What is the extension of qbasic program?

.bas file ==== <--QBASIC CODE end Now, go and search your computer c:\ directory for the file called: homepage.htm; and, left double click on it to run; your web browser software should automatically launch itself, and, so display the web page output. Right click within an empty space within the web browser page...and, choose View > Source...and, you will be able to see the HTML source codes which were used to originally write the web page with; though, the QBASIC code itself is not displayed but remains entirely hidden.


How do you open a svd file saved on a disc?

To open a SVD file saved on a disc, double click on it. If the file doesn't open, you need a software application for SVD file extensions.


What is the shortcut key for input statement in QBasic?

There is no shortcut key of input in qbasic


What are the different types of operators in QBASIC?

The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators

Related questions

What extension would a file saved in Qbasic have?

the extensions of qbasic are that, there are only 80 pixels to write in the qbasic


How do you open a saved Qbasic file in QBASIC itself to edit it?

IF THE QBASIC IDE/INTEGRATED DEVELOPEMENT ENVIRONMENT *IS* ALREADY OPEN Inside of QBASIC IDE/Integrated Development Environment...; you load in QBASIC programs as follows... 1. Use your mouse to click the QBASIC Menu option being seen top right... File > Open ...then, browse through the file list box to load your chosen program file. 2. Alternatively, you can also use keyboard short cut... [ALT]+[F], this opens up the file menu...then, press [O] ...does exactly the same as above IF THE QBASIC IDE/INTEGRATED DEVELOPMENT ENVIRONMENT IS *NOT* ALREADY OPEN 3. Another way is to open up a command line window prompt: (>)... Click [Start] button ...then, type: Command .../or, type: Cmd ...at least, one of the above should work... ...and, run the QBASIC program from there... by typing in after the command line prompt: (>)... c:\> cd, means, change directory folder... cd C:\pathToQbasic For example the file path name to where my version of QBASIC is stored here... c:\basic\qb64 So, I would first change to this folder directory by typing in after the prompt: (>)... c:\>cd c:\basic\qb64 ...this changes my command line prompt: (>) to say... c:\basic\qb64> Inside of the [qb64] folder directory, I wrote a very simple program called: hw.bas ...which contains the following single line of code... PRINT "Hello, world!" I can launch both the QBASIC program: [qb64.exe]/and, at the same time load in my chosen program file: [hw.bas], by typing after the command line prompt: (>)... C:\Basic\qb64>qb64 hw.bas ...the QBASIC program instantly loads: [qb64.exe]/with the program file [hw.bas] already being displayed inside of the Editor Screen. Next, I only need to press function key [F5] to RUN/make that program file execute... QBASIC Output Screen... Hello, world! Press any key to continue...


How do you open Qbasic in fullsceen?

alt+enter


What is the extension of qbasic program?

.bas file ==== <--QBASIC CODE end Now, go and search your computer c:\ directory for the file called: homepage.htm; and, left double click on it to run; your web browser software should automatically launch itself, and, so display the web page output. Right click within an empty space within the web browser page...and, choose View > Source...and, you will be able to see the HTML source codes which were used to originally write the web page with; though, the QBASIC code itself is not displayed but remains entirely hidden.


how to open a file?

How to open a dxl file?


How to open a dxl file?

How to open a dxl file?


How open bfa file?

how open bfa file


How do you open the file within the software that created the file?

Start the software. Usually there is an open button or a file menu. If there is no open button, go to file. Click open.


How do you open an Alice a2w file?

Open Alice, the program. From there, open it and open an a2w file.


How do you open qtx file?

Quicken for Mac to open the file.


How do you open a DOCM File?

Open this file in Word 2007.


How does one open a 3GP file?

The best way to open a 3GP file is to double click on the file and to let the computer decide what program to use to open it. If your computer cannot open the file, then you will need to download a program that can open this kind of file.