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 | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
