by this
Why does fopen("any_path_name",'r') not give NULL as return?
i get to know that in linux directories and files are considered to be file. so when i give any directory-path or file-path in fopen with read mode it doesnt give NULL file descriptor and?
so how can i check that whether it is dirctory path or file-path ? if i am getting some path from command argument?