how to search if a file exists or not

February 26, 2011 at 00:36:31
Specs: Windows XP
i want to search for a file of a particular file name by taking the file name as input from the user using c program

See More: how to search if a file exists or not

Report •


#1
February 26, 2011 at 01:05:30
Have a look at this example.

Report •

#2
February 26, 2011 at 06:08:25
The pure C way? Try to open the file for input. If it doesn't happen, the file doesn't exist, or you can't access it, which is kinda like not existing.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question