* When should I close a file?
@ 1996-01-29 5:00 Anthony Lee
1996-01-31 5:00 ` Bill Wendling
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Lee @ 1996-01-29 5:00 UTC (permalink / raw)
I have a C program in ULTRIX and OSF.
The program inputs lines of data representing coordinates of lightning
strikes. The program records the data arrival time and translates
the coordinates (for plotting).
The datafile can remain open for days before a strike is recorded.
Or in a storm many strikes can arrive within a few seconds.
My question is, if the program run continuously then how often
should I close the file as oppose to just saving it?
Thank you
--
Anthony Lee These are my opinions and not SEQEB.
SEQEB
150 Charlotte Street ..-- __o
Brisbane ....-- _ \<,_
Qld 4000 ____ (_)/ (_)
Australia
voice:+61 7 3407 4541 Death to the Daleks!!!!
fax: +61 7 3407 4607
email: AL012@svtstu.seqeb.gov.au
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: When should I close a file?
1996-01-29 5:00 When should I close a file? Anthony Lee
@ 1996-01-31 5:00 ` Bill Wendling
0 siblings, 0 replies; 2+ messages in thread
From: Bill Wendling @ 1996-01-31 5:00 UTC (permalink / raw)
Anthony Lee inexplicably wrote:
} I have a C program in ULTRIX and OSF.
} The program inputs lines of data representing coordinates of lightning
} strikes. The program records the data arrival time and translates
} the coordinates (for plotting).
} The datafile can remain open for days before a strike is recorded.
} Or in a storm many strikes can arrive within a few seconds.
} My question is, if the program run continuously then how often
} should I close the file as oppose to just saving it?
I know of no set standard of how long the file should remain open. I
guess that you don't want to close it because of the immediacy(sp?) of
needing to record the data. I would go with just saving it.
} voice:+61 7 3407 4541 Death to the Daleks!!!!
Right On! :)
--
Bill Wendling | "Pinky, are you thinking what I'm thinking?"
tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
"Boom Shanka" | Finger me for my Geek Code...NOW!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-01-31 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-29 5:00 When should I close a file? Anthony Lee
1996-01-31 5:00 ` Bill Wendling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox