C Check If A File Exists In A Folder

[Solved] C Check If A File Exists In A Folder | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : c check if file exists

Answered by : christian-lehnert

if( access( fname, F_OK ) == 0 ) { // file exists
} else { // file doesn't exist
}

Source : https://stackoverflow.com/questions/230062/whats-the-best-way-to-check-if-a-file-exists-in-c | Last Update : Wed, 13 Jan 21

Answers related to c check if a file exists in a folder

Code Explorer Popular Question For Php Frameworks Codeigniter