Answers for "check whether file exists in the folder c programming"

C
11

c check if file exists

if( access( fname, F_OK ) == 0 ) {
    // file exists
} else {
    // file doesn't exist
}
Posted by: Guest on January-06-2021

Code answers related to "check whether file exists in the folder c programming"

Code answers related to "C"

Browse Popular Code Answers by Language