Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2385
| From | Knute Johnson <nospam@knutejohnson.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: FileOutputStream questions |
| Date | 2012-12-25 14:05 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <kbd800$udk$1@dont-email.me> (permalink) |
| References | <p4ejd893hi08mkpjabtfn6mcbemhmuceua@4ax.com> <2u5kd8hl9tvgi2vkjf6guedae5nqrmbi47@4ax.com> |
On 12/25/2012 1:17 PM, Roedy Green wrote: > On Tue, 25 Dec 2012 06:36:29 -0800, Roedy Green > <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted > someone who said : > >> What I want is to log bytes that will be largely recoverable even if >> the program terminates unexpectedly without closing. Flush does not do >> it. Close/reopen periodically seem at bit heavy handed. Is there >> something I am missing? > > I discovered this > > fos.flush(); > fos.getFD().sync(); > > Which acts like close/reopen. > I never saw that before and it has been there since almost the beginning. Post back if that works for you please, cause I'm really curious now. -- Knute Johnson
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-25 06:36 -0800
Re: FileOutputStream questions markspace <markspace@nospam.nospam> - 2012-12-25 07:54 -0800
Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:30 -0800
Re: FileOutputStream questions Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2012-12-25 18:32 +0200
Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-25 11:45 -0800
Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:32 -0800
Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-26 09:19 -0800
Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-25 13:17 -0800
Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-25 14:05 -0800
Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:35 -0800
Re: FileOutputStream questions markspace <markspace@nospam.nospam> - 2012-12-26 07:46 -0800
Re: FileOutputStream questions Stanimir Stamenkov <s7an10@netscape.net> - 2013-01-01 02:36 +0200
csiph-web