From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,38b61b41dee7ad9e X-Google-Attributes: gidfee84,public X-Google-Thread: 1014db,38b61b41dee7ad9e X-Google-Attributes: gid1014db,public X-Google-Thread: f678f,38b61b41dee7ad9e X-Google-Attributes: gidf678f,public X-Google-Thread: 10b612,38b61b41dee7ad9e X-Google-Attributes: gid10b612,public From: tanp@ns (Bill Wendling) Subject: Re: When should I close a file? Date: 1996/01/31 Message-ID: <4en4nv$45k@news.cencom.net>#1/1 X-Deja-AN: 137377250 references: followup-to: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix organization: Cen-Com Internet newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix 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!