> I've avoided this technique simply because I've never been able to figure
> how to account for a crashed process and a leftover file.  If your app
> crashes (rare, I know) and your temporary file is still present, how do
you
> distinguish between "current" file versus a leftover?

Simple. Write the milliseconds into the file. Then, when the app launches,
grab the milliseconds as its "launch date". When it goes to look in the
folder, it will read in the "leftover" file, but because the milliseconds in
the leftover is *earlier* than the launch date, it is ignored. It will only
read files written into the "watched" folder *after* the launch date.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to