so it is important to check to see if the file was opened by fopen at all with an if statement, so you can at least print an error message and exit gracefully.Originally Posted by The CProgramming.com File I\O Tutorial
so it is important to check to see if the file was opened by fopen at all with an if statement, so you can at least print an error message and exit gracefully.Originally Posted by The CProgramming.com File I\O Tutorial
answer is already given. You print path inside the function where the path is correct.
Now print the path just before you try to open the file.
now another problem
http://cboard.cprogramming.com/showt...245#post555245