I need check file existance.
When I'm cheking with
Code: Select all
fopen(path, "rb") != NULL
{
// file exist
}
So I want to try different - access function.
Code: Select all
if ( access(path, (F_OK) != -1 )
{
// file exist
}
else
{
// no file
}
Any ideas why it happens?
P.S. File size is not big - about 4-8 bytes.