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: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: append() vs. write() Date: Tue, 10 Jan 2012 18:35:23 -0500 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <3d2746a6-f57c-4fa1-b547-dfddc23bb6b6@n30g2000yqd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 10 Jan 2012 23:28:26 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="8635"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bcbWVGhjHHib7fiP2kJ5vzodGSR2Zv8o=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:GIQYs/MNnyx8HCoWLC0BX4QqcBw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11197 On 01/10/2012 05:15 PM, Jeff Higgins wrote: > On 01/10/2012 04:48 PM, Jeff Higgins wrote: >> On 01/10/2012 11:17 AM, Benjamin Trendelkamp-Schroer wrote: >>> Hi, >>> >>> I want to write a method that can write possibly large matrices of >>> floating point numbers in scientific notation to human readable ascii >>> files. I want to be able to specify the formatting of the floating >>> point numbers usins format strings like "%1.8e" or "%2.5f". >>> > Oops! java.utilFormatter Duh. Sorry, please ignore previous post. Well,maybe not all is lost. PrintWriter does have a printf( String format, Object... args). So I guess you can lose the DecimalFormat for the printf.