Results 1 to 2 of 2
  1. #1
    mathias is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Help with write file in java

    Hi, I having a bit of a problem figuring out what to do.
    All i need to do is delete file,create new file,write container data to file.
    Just something small will be helpful.


  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Rep Power

    Default will delete a file.

    PrintWriter pw = new PrintWriter(new FileWriter("FileName"))
    is a good way to write a file.

Similar Threads

  1. how to write onto a file
    By mirage_87 in forum New To Java
    Replies: 6
    Last Post: 09-08-2009, 04:54 PM
  2. Replies: 0
    Last Post: 04-06-2008, 08:43 PM
  3. how do i write to a text file from an arraylist?
    By otoro_java in forum New To Java
    Replies: 3
    Last Post: 01-30-2008, 07:53 AM
  4. File Write Error
    By vikain in forum Advanced Java
    Replies: 5
    Last Post: 01-02-2008, 05:38 AM
  5. Write unicode into file
    By vata2999 in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 04:04 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