|
From: Per W. <pw...@ia...> - 2005-05-20 07:03:20
|
Have you looked at the access() function - specifically there to check for
existence - or specific rights - for a file.
/Per W
On Fri, 20 May 2005 A_B...@gm... wrote:
> Well, it's a little bit unconventional, but I check file existans in this way:
>
> if(FILE* f = fopen("file", "r")){
> fclose(f);
> // file exists
> ...
> }else{
> // file doesn't exist
> ...
> }
>
> What speaks against this method ???
>
> CU, Acki
|