Your application has a "Working Directory"
. This is the directory in which it tries to open files.
In your case the file is probably not in the "Working Directory"
of the running application. So the solution is:
- Put the file in the
"Working Directory"
of the application
- Change the application
"Working Directory"
.
- Use an
Absolute Path
for the file name.
Also see: How do I get the directory that a program is running from?