You are here:

C/searching a file through c program

Advertisement


Question
i need a logic for a program which can read file name from user and then search for that file name within c d or e drive.

Answer
On Windows you need the FindFirstFile and FindNextFile functions. You can see a sample of code here:
http://msdn.microsoft.com/en-us/library/aa365200%28v=VS.85%29.aspx

Try to create your program, and if you need more help, then show me what you've done, and ask more questions.

Kindest regards
Zlatko  

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2012 About.com, a part of The New York Times Company. All rights reserved.