fopen error message
Posting here before, I've gotten some really good responses. Belated thanks to all who've helped. New question:
When I use fopen(filenameptr, "a") from <stdio.h>, I'm successfully able to open a file as expected. If the file doesn't already exist, the program creates a new one of given name. Great!
But if the file doesn't exist yet, the program not only creates a new file, it also spits out an error message to my screen, "foobar.txt: The system cannot find the file specified."
Is there anyway to stop the error from being output?
When I use fopen(filenameptr, "a") from <stdio.h>, I'm successfully able to open a file as expected. If the file doesn't already exist, the program creates a new one of given name. Great!
But if the file doesn't exist yet, the program not only creates a new file, it also spits out an error message to my screen, "foobar.txt: The system cannot find the file specified."
Is there anyway to stop the error from being output?
