Mail Archives: djgpp/2002/07/18/01:58:01
Why don't you create a new file every 5 minutes, (and
save and close the old one), with a little modified
filename?
Or maybe: Try using fp=fopen("filename","a"); and save
the file every 5 minutes. (I never used fopen with "a", so
I don't know exactly how it works.)
Till the next time,
--- Thomas Harte wrote:
> I wish to write a program that will log all keyboard
> events during the
> execution of another program. This has not proved too
> taxing to write - I
> have simply followed the various parts of the DJGPP FAQ
> on interrupt
> handlers, chained one to the keyboard interrupt, and
> logged all activity in
> that. The second program is then spawn'd and runs
> perfectly happily.
>
> My problem is that although logging to a memory buffer is
> nice, I would like
> to log to disc. But I can't find a way to do this,
> assuming that I don't
> have the memory to log all keypresses and then write them
> to disc when the
> second program terminates.
>
> What would I do to achieve this?
>
> -Thomas
>
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
- Raw text -