Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.help Subject: Re: Easy way to read the contants of a folder/directory and output contents to file? Date: Mon, 12 Dec 2011 13:04:15 -0500 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 12 Dec 2011 18:04:15 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="HSlJAUb3pGXi3i7ZL/HoAw"; logging-data="3004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZbAXM7RLE330hb8guORRh" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:du5k7Z6FO9JsRFb1N3g/jwS65UU= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1444 On 12/12/2011 12:40 PM, Eric Sosman wrote: > On 12/12/2011 11:54 AM, Thee Chicago Wolf [MVP] wrote: >> [...] >> Realistically, these two statements work exactly the same: >> >> outFile.print(String.valueOf(list[i]+"\n")); >> outFile.write(String.valueOf(list[i]+"\n")); > > If you want to become a programmer, you'll need to develop > an eye for detail ... ... sez me, whose eye for detail seems to have developed cataracts. (Sigh.) > Also, it's *still* silly to take String.valueOf(a_String). > Why not String.valueOf(String.valueOf(String.valueOf("Hello!")))? -- Eric Sosman esosman@ieee-dot-org.invalid