Search:

Type: Posts; User: Zula

Search: Search took 0.18 seconds.

  1. Replies
    6
    Views
    2,875

    Re: PrintStream not printing in file

    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...
  2. Replies
    6
    Views
    2,875

    Re: PrintStream not printing in file

    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?
  3. Replies
    6
    Views
    2,875

    Re: PrintStream not printing in file

    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...
  4. Replies
    6
    Views
    2,875

    Re: PrintStream not printing in file

    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...
Results 1 to 4 of 4