Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    Your use of IDEs has isolated you from how things work.
    See the tutorial:
    "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
  2. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    I don't think using an IDE helps. Try opening a command prompt window and using the java command to execute the program.
  3. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    What happens if you read the file in an editor and save it with a different name?
    When I use the program with the file:
  4. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    I have no idea what is wrong with the working of the program on your system.
  5. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    What does the code do when it is executed? Add an if statement inside the while loop to print out a message every 100 lines it reads. Something line this:

    if(lineCount % 100 == 0)...
  6. Replies
    13
    Views
    1,649

    Re: Problem reading in the files

    Are there any error messages when the program is executed? Copy the full text and paste it here. Add a call to the printStackTrace() method to the catch block to show the full text of the error...
Results 1 to 6 of 6