Looks like your app isnt finding the file. Better to say that the file isnt the directory of the running process. This could differ, so better take a look in the setings of the project.
As always it is best to use the
complete path for file operations. So also for the output process!!!
Learn to use the debugger. This
debugger tutorial is providing some basic knowledge.