| View previous topic :: View next topic |
| Author |
Message |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Aug 29, 2006 1:32 am Post subject: Verify if a file already exist ? |
|
|
Hello here, for the shell i'm working on i would like to search if a file exist or not in a directory. For this i can use a code like sceIopen to see what it return. But i'm sure there is a faster way to look if a file exist. I'm not really skilled so help would be cool hehe :x
Thanks in advance . |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Aug 29, 2006 3:44 am Post subject: |
|
|
| Code: | | if(access("blah.txt",F_OK)) file_exists(); |
|
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Wed Aug 30, 2006 6:28 am Post subject: |
|
|
| Many thanks it work faster than the old method hehe. I had to put the unistd.h include and thats ok. |
|
| Back to top |
|
 |
|