Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35828

How do you close the stream with Files.write?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject How do you close the stream with Files.write?
Date Wed, 19 Oct 2016 15:55:38 -0500
Organization A noiseless patient Spider
Lines 9
Message-ID <nu8mjm$jhh$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 19 Oct 2016 20:55:19 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="66689394d78afda5bc2d589e4b9a78cb"; logging-data="20017"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tpn6Vfr36OgNNiekQG3z1"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
X-Mozilla-News-Host news://news.eternal-september.org:119
Cancel-Lock sha1:sysvMWVaPoMzrb94pWiRiWufthw=
Xref csiph.com comp.lang.java.programmer:35828

Show key headers only | View raw


java.nio.file.Files(Path path, Iterable<? extends CharSequence> lines, 
OpenOption... options) appears to have no way to close the underlying 
stream?

Thanks,

-- 

Knute Johnson

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How do you close the stream with Files.write? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-10-19 15:55 -0500
  Re: How do you close the stream with Files.write? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-10-19 17:07 -0400
    Re: How do you close the stream with Files.write? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-10-19 16:12 -0500

csiph-web