I am an AP student in high school and am currently working on a large program. I was wondering if it is possible to have my program open a file that is usually opened through the comand prompt.
please e-mail me at [email protected]
Printable View
I am an AP student in high school and am currently working on a large program. I was wondering if it is possible to have my program open a file that is usually opened through the comand prompt.
please e-mail me at [email protected]
Try reading the FAQ.
which class? comp sci A or comp sci AB... or something else...
what type of "file" are you trying to open?
Hint<if your in windows>. try the windows API.... full of usefull features :)
If your program has permission to read the file, then there should be no problem opening it through fstream.
why not just use
#include <cstdlib>
system("Char array that equals the command you would write to open this file from the commandline" )
IE: System("C:\Something.exe");
Ok it may be C but it should work