P
pshyamsunder
Hi:
I am facing a strange problem.
I have opened a file "File1" using fopen() and while processing the
records in the file in a loop, I have a call to access() to check
existence of "File2". The reason is to stop processing further records
when the file "File2" exists. But the access() call fails when the file
"File1" is open.
If I close "File1" before making a call to access() on "File2", then it
works. Why is this behavior?
Please help. And please excuse my C ignorance.
Regds..Shyam
I am facing a strange problem.
I have opened a file "File1" using fopen() and while processing the
records in the file in a loop, I have a call to access() to check
existence of "File2". The reason is to stop processing further records
when the file "File2" exists. But the access() call fails when the file
"File1" is open.
If I close "File1" before making a call to access() on "File2", then it
works. Why is this behavior?
Please help. And please excuse my C ignorance.
Regds..Shyam