I am currently working on my own little version of run. I am trying to make my program open whatever file I input that is in my My Documents folder. I have windows 7, username Michael:
I am trying to open the file: Driving Hours.xlsx but it has a space. I am using getline(cin,item);, but it appears the system() command isn't getting things that are after spaces. This is the output:
>>doc
>>Driving Hours.xlsx
C:\Users\Michael\Documents\Driving Hours.xlsx'C:\Users\Michael\Documents\Driving' is n
ot recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
How do I get it to open the file? Thanks in advance.
EDIT 1:
The program will open files without spaces just fine.
line 23 where it opens the file... its just putting the file into the command prompt. you are missing the command to open what i think are excel spread sheets