|
From: Gilles C. <cre...@ya...> - 2005-05-20 07:43:30
|
Hello,
with function "fstat" , you have possibility to
receive size of file , owner ,.... and existence (+
portability).
Gilles
--- Per Westermark <pw...@ia...> a écrit:
> 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
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space
> Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
>
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE:
> http://www23.brinkster.com/noicys/devcpp/ub.htm
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
_____________________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com
|