In my C++ program, I want to make sure i can write info to a file. How can I perform this check?
You use the stat() system call, which the purists will tell you doesn't exist unless you change the tags on your question.