AllExperts > Qbasic, Quickbasic 
Search      
Qbasic, Quickbasic
Volunteer
Answers to thousands of questions
 Home · More Qbasic, Quickbasic Questions · Answer Library  · Encyclopedia ·
More Qbasic, Quickbasic Answers
Question Library

Ask a question about Qbasic, Quickbasic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Alex Barry
Expertise
I have been a qbasic programmer since 2000, creating games, minor libraries and various small programs. I have experience using interrupts, graphics, file input/output, the mouse cursor, and using libraries. I have also learned FreeBASIC, c/c++, python, php and html.
I do not claim to be an absolute authority in any language, but I don't mind looking things up and learning with you.

Experience
Hobby programming since 2000

I no longer belong to any community programming groups, but do have knowledge of *basic dialects and C/C++

 
   

You are here:  Experts > Computing/Technology > Basic > Qbasic, Quickbasic > help

Qbasic, Quickbasic - help


Expert: Alex Barry - 3/6/2009

Question
Hello. I see you are an expert with qbasic, so i thought you sure were able to help me with my problem. See me and my friend are practicing for a competition and we got this program we just cant solve. We have to make a program which takes a string and makes the folder with that string as its name. But we do not know how to make a file inside that folder with the same program. The program should take a string and make a file with that string as its name inside the folder we made earlier. So if you can help us, please do :D

Answer
Hi, Faris,

It looks like there are 3 steps to this program.

First, you have to get the string name:

DIM UserInput AS STRING

INPUT "Name of folder and file: ", UserInput

Next, you have to create a folder.

In the QBasic help section, go into Index, and look up the MKDIR command.  It will tell you how to make folders with a specific name.

With the folder made, you'll have to make a file.  You'll want to look up the OPEN command in the help menu.  To open and create a file, there are a few sub-steps you'll have to figure out.

If you need specific help, if you show me some of your code, and I point you in the right direction.
-Alex

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.