Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Good luck. You have the code here and there that does what you want. You just need to organize it a bit.
  2. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Sorry, I don't know of any tutorials for reading a file and saving the data in a list. Seems simple enough.
    You have code to read the data and code to add data to a list. Merge the logic for each...
  3. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Then you need a method that reads the file, gets the data and adds that data to the lists before starting with the menu for the user to respond to.
  4. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    You need to use methods that match the methods used to write the file to read it and in the same order,
    If you used writeInt() to write something, then you need to use readInt() to read it.


    Are...
  5. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    There was code in post#8 that reads lines from the file.

    What do you want to do with the lines you read from the file?


    The program can't do anything after it is closed.
  6. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Please explain what you want.
    You have posted code that you've written that writes lines to a file so you know how to create a file and write lines to it. Take the logic from the code in post#8 and...
  7. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Please use code tags to surround the code, note quote tags.


    What part of the code are you having problems with?
  8. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Now try writing a small simple program that creates a file, writes out a few lines, closes the file and then reads them back and prints them. This is to learn how to use the classes and methods...
  9. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    Next, what will go on each line in the file?
    Will data from one execution be appended to data from an earlier execution of the program?

    When will the file be read? What will its contents be used...
  10. Replies
    21
    Views
    2,357

    Re: File Input and Output and Exception Handling

    What data do you want to save? What format do you want to save it in? As text or ???

    When and where in the program do you want to create the file and write data to it?
Results 1 to 10 of 10