Results 1 to 4 of 4
  1. #1
    kryptonian03 is offline Member
    Join Date
    Dec 2010
    Posts
    18
    Rep Power
    0

    Question Append, Find and Filter

    Good day guys!

    I was able to create a file and produce the following output:

    1 8:00 17:00 Mon
    1 8:00 17:00 Tue
    1 8:00 17:00 Wed
    1 8:00 17:00 Thu
    1 8:00 17:00 Fri

    But every time i run the program it overwrites the contents of the existing text file... How can i add an append to the text file?

    Lets say i have added 2 8:30 17:00 Mon, what should i do?

    Thank you very much!

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,807
    Rep Power
    10

    Default

    Go to the Java API and see what constructors are available for the FileWriter class.

  3. #3
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    7

  4. #4
    kryptonian03 is offline Member
    Join Date
    Dec 2010
    Posts
    18
    Rep Power
    0

Similar Threads

  1. Append to file
    By berkeleybross in forum CLDC and MIDP
    Replies: 9
    Last Post: 06-18-2010, 11:42 AM
  2. need help to append 2D array
    By doha786 in forum New To Java
    Replies: 2
    Last Post: 04-02-2010, 06:40 PM
  3. Browse for and append
    By looselispssinkships in forum New To Java
    Replies: 0
    Last Post: 03-19-2010, 11:25 AM
  4. web content filter or internet filter
    By sundarjothi in forum Advanced Java
    Replies: 3
    Last Post: 05-15-2008, 11:36 AM
  5. JLabel append?
    By Jononomous in forum New To Java
    Replies: 0
    Last Post: 04-07-2008, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •