What I mean to say is that I print a string, fine, but then trying to read "93.6", String, with readDouble was giving the EOF error
And if your looking for a human readable, or string version) of a...
Type: Posts; User: Zula
What I mean to say is that I print a string, fine, but then trying to read "93.6", String, with readDouble was giving the EOF error
And if your looking for a human readable, or string version) of a...
Okay, I see my problem was that I am printing the String representation of a double, and trying to read the bytes of a double...Perhaps your problem as well?
What are you getting in the file?
public static void main(String[] args) throws Exception {
int i;
PrintStream printer = new PrintStream("c:\\txt.txt"); //Using another outputstream...
Is it necessary to use PrintStream? I am not familiar with it, but this works to print a double to file.
public static void main(String[] args) throws Exception {
BufferedWriter bOut = new...