From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,38b61b41dee7ad9e,start X-Google-Attributes: gid1014db,public X-Google-Thread: 10b612,38b61b41dee7ad9e,start X-Google-Attributes: gid10b612,public X-Google-Thread: f678f,38b61b41dee7ad9e,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,38b61b41dee7ad9e,start X-Google-Attributes: gidfee84,public From: al012@svtstu.seqeb.gov.au (Anthony Lee) Subject: When should I close a file? Date: 1996/01/29 Message-ID: #1/1 X-Deja-AN: 136879376 sender: news@un.seqeb.gov.au (USENET News System) x-nntp-posting-host: 147.209.150.100 organization: Your Organization mime-version: 1.0 newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix 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