Welcome to Pete's QBASIC Site!

What does "Bad File Mode" mean?

Chances are that you are trying to open a binary *.BAS file in QBasic. GW Basic, QuickBasic, and BasicA, all used a binary save format. This format was created to save disk space on early computers. QBasic *.BAS files are saved ONLY in ASCII text format, so any file that displays this error cannot be loaded into QBasic, unless it first is loaded into another Basic editor and saved as ASCII.

QuickBasic has the option to save .bas files as either Binary or ASCII format, and can be used as a converter. Chances are, though, that if you're using QBASIC to open .BAS files instead of QuickBasic, then you probably don't have a copy of QuickBasic. In that case, there's a little application to convert Binary .BAS files to ASCII format available right here. It's called "RB Command," and I don't know who wrote it.

NOTE: Just because a file has a *.BAS extension, does not necessarily mean that it is a QBasic file. It could be one of any number of Basic program files... including VisualBasic. Your problem could also be that you are loading an invalid *.BAS format.

Submitted by: Pete on June 22, 2004

Return to the FAQ

Copyright © Pete's QBASIC / QuickBasic Site, 1998-2018.
All rights reserved. Site owned and operated by Pete Berg. Programs and submitted content are property of their creators, and appear on this site by direct or implied permission. Pete's QBasic Site is powered by Coranto. This site was created entirely in Notepad.