Amardeep Sidhu wrote: > hello everyone....can anyone tell how to chek in a directory whether > there is any file inside or not..actually m writing a program which > will constantly monitor a directory...whether there z any file inside > or not....whenever there is any file in the directory..it will copy > the file to some other directory and delete from the directory being > monitored.....i got some idea that if we know the name of the file > then we can do it..but my case is not like this....any ideas..
You should use the functions findfirst and findnext. To use these, you should include the file dir.h. If you use MFC, you could use the class CFileFind. -- Mark Van Peteghem http://www.q-mentum.com -- easier and more powerful unit testing ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM --------------------------------------------------------------------~-> >-----------------------------------------~-~> CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at http://www.eScribe.com/software/C-Paradise/ >------------------------------------------_-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/C-Paradise/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
