Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   checking file existing time to time, in the same time program do other operation (http://www.programmingforums.org/showthread.php?t=8841)

myName Mar 13th, 2006 8:40 AM

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:

nnxion Mar 13th, 2006 9:48 AM

You haven't given us enough information, but yes threads could be what you want to check something regularly.

.TD Mar 13th, 2006 9:55 AM

Or you could just check it before you need to use it as this would probably be more efficient and easier.

myName Mar 13th, 2006 8:39 PM

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