I can write strings fine but can't write doubles. Do I have to close
the file and try writing with another method?
Roedy Green - 30 Nov 2005 00:08 GMT
>I can write strings fine but can't write doubles. Do I have to close
>the file and try writing with another method?
see http://mindprod.com/applets/fileio.html
for how to do almost any i/o.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
timb11783 - 30 Nov 2005 00:29 GMT
This does not help me
Roedy Green - 30 Nov 2005 00:52 GMT
>This does not help me
You gave almost no detail of what you were trying to do, so I could
only offer generic advice.
then see http://mindprod.com/applets/converter.html
for how to convert double <-> String

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Paulus de Boska - 30 Nov 2005 11:24 GMT
Should be a new file :
FileOutputStream fos=new FileOutputStream (pathname) ;
DataOutputStream dos=new DataOutputStream(fos);
dos.writeUTF( somestring );dos.writeDouble( somedouble );
Paul Hamaker
http://javalessons.com
Thomas Fritsch - 30 Nov 2005 16:21 GMT
> I can write strings fine but can't write doubles. Do I have to close
> the file and try writing with another method?
What do you want? Write out a double
(1) as a human-readable String
or (2) as 8 raw bytes (IEEE-754 format) ?

Signature
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')