Re: File exist
- From: Kenneth Brody <kenbrody@xxxxxxxxxxx>
- Date: Tue, 18 Apr 2006 14:20:43 -0400
Mr John FO Evans wrote:
[...]
[...]On 16 Apr 2006 01:53:03 -0700
paytam@xxxxxxxxx wrote:
Can anyone tell me how can I check that a file exist or no.
What is wrong with attempting to open the file and if there is no error
closing it again? Surely this is standard 'C'?
Because if it fails, it won't (necessarily) tell you why. As has been
pointed out elsethread, insufficient access privileges will fail the
same way as a non-existent file. While many implementations will set
errno to the reason for the failure, such behavior is not guaranteed by
the Standard.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>
.
- References:
- File exist
- From: paytam
- Re: File exist
- From: ed
- Re: File exist
- From: Keith Thompson
- Re: File exist
- From: Claude Yih
- Re: File exist
- From: Flash Gordon
- Re: File exist
- From: Mr John FO Evans
- File exist
- Prev by Date: Re: char* pname = "Harry"
- Next by Date: Re: char* pname = "Harry"
- Previous by thread: Re: File exist
- Next by thread: Re: File exist
- Index(es):
Relevant Pages
|