Re: Programming in standard c
- From: Robert Latest <boblatest@xxxxxxxxx>
- Date: 28 Dec 2007 15:08:11 GMT
Bart C wrote:
I don't know how to deal with /var/adm/messages or similar. Suppose I read
byte-by-byte as recommended then someone updates the beginning of the file?
Maybe it's foolhardy to even attempt making a copy of such a file. I'm not
allowed to lock it because that's also frowned upon. What exactly can one do
with such a file?
You need to KNOW what you can do with a file before starting to do stuff
with it. That's an excellent reason why a generic gobble-into-RAM or
filesize function just doesn't make any sense.
robert
.
- References:
- Programming in standard c
- From: jacob navia
- Re: Programming in standard c
- From: jameskuyper
- Re: Programming in standard c
- From: Erik Trulsson
- Re: Programming in standard c
- From: user923005
- Re: Programming in standard c
- From: jacob navia
- Re: Programming in standard c
- From: Richard Heathfield
- Re: Programming in standard c
- From: jacob navia
- Re: Programming in standard c
- From: user923005
- Re: Programming in standard c
- From: Richard
- Re: Programming in standard c
- From: Eric Sosman
- Re: Programming in standard c
- From: Bart C
- Programming in standard c
- Prev by Date: Re: Programming in standard c
- Next by Date: Re: Making C better (by borrowing from C++)
- Previous by thread: Re: Programming in standard c
- Next by thread: Re: Programming in standard c
- Index(es):
Relevant Pages
|