Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c check if file exists

if( access( fname, F_OK ) == 0 ) {
    // file exists
} else {
    // file doesn't exist
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #file #exists
ADD COMMENT
Topic
Name
4+5 =