Results 1 to 3 of 3

Thread: printwriter

  1. #1
    sope is offline Member
    Join Date
    May 2011
    Location
    nigeria
    Posts
    1
    Rep Power
    0

    Default printwriter

    pls who can help mi with creating,writing to a new file in a newly created folder and reading from thefile in the folder using printwriter

  2. #2
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Use the File, BufferedReader, BufferedWriter, and FileWriter classes.

    Constructor for a BufferedWriter:

    Java Code:
    BufferedWriter bw = new BufferedWriter(new FileWriter(new File("path")));

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

Similar Threads

  1. printWriter problem
    By Lund01 in forum Advanced Java
    Replies: 6
    Last Post: 10-14-2010, 02:28 PM
  2. Help with printwriter class
    By eel in forum New To Java
    Replies: 9
    Last Post: 09-19-2010, 03:04 PM
  3. Help with PrintWriter code
    By eel in forum New To Java
    Replies: 4
    Last Post: 09-19-2010, 08:36 AM
  4. Help with printwriter.
    By Addez in forum New To Java
    Replies: 2
    Last Post: 10-30-2009, 02:58 PM
  5. Using Printwriter (java.io.*)
    By LifeWithJava in forum New To Java
    Replies: 3
    Last Post: 12-25-2008, 09:07 AM

Posting Permissions

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