Re: [Dev-C++] file modification time
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-02-23 08:27:23
|
Directory updates are a OS-related thing, and not so much we can do anything about. Maybe you should explain exactly why it is important to check the file modify time. Isn't it enough for the B app to just check size and read the new information - similar to the "tail" program. Also, remember that for Windows you can add a supervision subscription for a file or director and get events when something happens with the file without constantly polling the file. /Per W On 22 Feb 2005, Bhuvaneswaran A wrote: > Hi, > > I am using winxp & dev cpp 4.9.8. I have an application, say 'A' to > write binary data to a file continuously. I have another application, > say 'B' to read data from that file. Application B uses the file > attributes (ctime & mtime) to read a portion of that file. > > The problem here is, the file size is increasing, but mtime is always > set to ctime + 2 seconds, till, either we terminate the application or > close that file. The problem exists either when we browse the attributes > of the file through windows explorer or from application 'B'. > > Why is the mtime of the file not changing ? Should i have to use any > other option while writing data to that file ? Please help. > > I have googled for details, but couldn't find a solution. > -- > Regards, > Bhuvaneswaran A > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |