How would one go about testing for the deletion of a file that sits
under an o[f]stream object? I've tried is_open, good(), fail(), eof(),
bad() and catching exceptions - nothing! Aparently the << operator
still succeeds which I guess is because it's still writing to the
buffer (but even flush() doesn't fail). If an external program (such as
rm or del) deletes the physical file - how can I catch this in the
program? In a relatively elegant, non-hacky way!?
Regards,
Jim Vanns