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
|