What's the OS and compiler?

For VC++, you can use _findfirst() / _findnext() / _findclose().

For Windows in general, you can use the FindFirstFile() / FindNextFile() /
FindClose() APIs.

HTH

Shyan


> -----Original Message-----
> From: aavvee [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 10:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [c-prog] How to compare file name with C?
>
>
> hi, Shyan:
>
> Thanks for your info.
> I already created file MyFile.txt in directory D:\Working\
> And I got the file name "MyFile.txt" from command line with gets()
> How to search directory D:\Working\ and find if there is a file named
> "MyFile.txt"?
>
> Thanks,
>




To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=607609700


Yahoo! Groups Links

Reply via email to