Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    This is a good way to learn how stuff works. I've used it a lot myself.
    Write lots of small test programs to see how stuff works.
  2. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    The Scanner class has a family of methods that can be used to read different data types from a file.
    Or if the records are read into Strings as the posted code does it,
    the String can be passed to...
  3. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    Yes, java does not have (yet) the magic macros that hide all the method calls with a few symbols like << or >>.
    The method calls must be explicitly made in the code by the programmer.
  4. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    Was anything written to the file? Writing an int value to a file does not write a String. An int takes 4 bytes and will have binary values that often are not readable in a text editor. You would...
  5. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    You will have to write something into the file so there will be something to read.
  6. Replies
    12
    Views
    1,106

    Re: Creating a File with eclipse:

    The existence of a File object in a java program has nothing to do with the existence of a file on the disk.
    The File class has methods that can be used to create a file.
Results 1 to 6 of 6