Article View: borland.public.jbuilder.java.language
Article #15642Re: double value to file text
From: Steve Schafer (TeamB)
Date: Tue, 18 May 1999 00:00
Date: Tue, 18 May 1999 00:00
13 lines
1064 bytes
1064 bytes
On Tue, 18 May 1999 09:55:04 -0400, Hungria Berbesi <hungria@ing.ula.ve> wrote: >Here is a code make for me, but, my file text is bad, because >the values have a blanks in int. It looks like you are using DataOutputStream (or possibly ObjectOutputStream) for your file. The reason you're seeing blanks is that DataOutputStream writes Unicode (16-byte) characters. But you want ANSI (8-byte) characters. To do that, use PrintWriter (or PrintStream if you're using JDK 1.0) instead of DataOutputStream. -Steve
Technical Details
Message-ID:
<375180ca.68971165@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37417137.69AF1A31@ing.ula.ve>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e82beaabf6dbe49f X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: double value to file text Date: 1999/05/18 Message-ID: <375180ca.68971165@90.0.0.40> X-Deja-AN: 479462276 Content-Transfer-Encoding: 7bit References: <37417137.69AF1A31@ing.ula.ve> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language