![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 48
Rep Power: 0
![]() |
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? ![]() |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
You haven't given us enough information, but yes threads could be what you want to check something regularly.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2006
Location: UK
Posts: 36
Rep Power: 0
![]() |
Or you could just check it before you need to use it as this would probably be more efficient and easier.
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Oct 2005
Posts: 48
Rep Power: 0
![]() |
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... :-( |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|