I am trying to open a directory, and then open a file named \"YouTubeSign\", directory opens fine, but for some reason fopen() on the file fails even if the file exists; any ide
The problem is that the file-name you get from readdir does not include the base path provided to opendir.
readdir
opendir
You have to create the full path using the base path, the path separator and the file-name.