Re: fstat, file_info and file_test [message #35214 is a reply to message #35090] |
Thu, 15 May 2003 08:44   |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Paul van Delst wrote:
>
> Umm, pardon my denseness, but how is this different from file access/status issues for
> other languages? My experience is limited to Fortran (which has a number of file inquiry
> capabilities) but I would think at some point, regardless of language, the programmer has
> to take responsibility for avoiding the problems mentioned. At the very least, code
> defensively to trap or minimise subsequent damage.
>
> paulv
>
No, no, your not dense at all! You've hit it right on the head! I think
that is what Nigel might have been saying under his breath - but I
shouldn't put words there. I thought I was being careful by checking
that the file was open before writing to it (or closing it when I'm
done.) I'm still banging my head against the images from a submarine
camera. It's one of the GUI things where the images are being collected
from a rolling tape at n second intervals. The user might want to pause
the collecting process to wait for a jelly fish to float past the
camera, swap tapes or who knows what? Your right, I'll just have to be
tight about programmatic control.
Cheers,
Ben
|
|
|