Will there be any problem if a file is not closed before unlinking it.
For eg, if we have a file called myFile,
myfilePointer = fopen(myFile, ...);
/* do some read/write processing */
Actually, this is how it is in some code and when run, found a message like "Too many open files" in the log. So i doubt its because of not closing the file though we are unlinking it.. Am I right? or is there any other reason?