![]() |
checking file existing time to time, in the same time program do other operation
Greeting to all,
Have a quesion that need help, i need to check the existing of a file time by time, how can i do this? Is it creating a thread? Beside checking existing of a file, the program have other operation too... How to decide this program? :confused: |
You haven't given us enough information, but yes threads could be what you want to check something regularly.
|
Or you could just check it before you need to use it as this would probably be more efficient and easier.
|
This program is a com service program.. i so new in com service n c++, especially the thread.. huh!.. headache...
In the program, have 2 task.. 1. check file existing, if the file exist, do some process then clear the contain of the file.. 2. Get data send from client program, then save to database The checking can be done every 30 minutes, Is there got timer in C++? use timer better or Thread better ? Time so short for me... :-( |
| All times are GMT -5. The time now is 7:43 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC