-
November 23rd, 2009, 10:03 PM
#1
the system cannot find the file specified
Code:
ifstream infile;
infile.open("input.txt");
I have the file saved in my project directory. What could be the problem.
-
November 23rd, 2009, 10:48 PM
#2
Re: the system cannot find the file specified
The program runs from the Debug or Release folder.
-
November 23rd, 2009, 11:39 PM
#3
Re: the system cannot find the file specified
...or any other directory that may have been set as current.
There are only 10 types of people in the world:
Those who understand binary and those who do not.
-
November 24th, 2009, 05:55 AM
#4
Re: the system cannot find the file specified
With GetCurrentDirectory you can see what your path is.
-
November 24th, 2009, 08:00 AM
#5
Re: the system cannot find the file specified
... and to make you life more simple and secure always use the full path name for your files
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|