reading and posting data to a file using java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yaveus
    New Member
    • Apr 2008
    • 1

    reading and posting data to a file using java

    Hi?I am studying java on my own and got stack on how to read and post data to a file using java e.g how will you solve this:

    A simple application that, when run, Welcomes the users and tells them the name of the last person to run the application, this information should be retrieved from a file. After welcoming the users, asks them for their name and saves it to the file.
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by yaveus
    Hi?I am studying java on my own and got stack on how to read and post data to a file using java e.g how will you solve this:

    A simple application that, when run, Welcomes the users and tells them the name of the last person to run the application, this information should be retrieved from a file. After welcoming the users, asks them for their name and saves it to the file.
    You may read the FileWriter class and the FileReader class...

    Writing an algorithm/pseudocode may help you alot....

    regards,
    sukatoa

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Sun's IO tutorial: http://java.sun.com/docs/books/tutor.../io/index.html

      Comment

      Working...