Results 1 to 4 of 4
  1. #1
    mDennis10 is offline Member
    Join Date
    Jul 2011
    Posts
    76
    Rep Power
    0

    Default PrintStream file manipulation

    I was just wondering is there anyway to use printStream without overriding the content that is previous stored within a file. for example if i have a file that I previously written content to and now want to read in the same file to manipulate again using a PrintStream object overrides what was previous written. How can i afford this?

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

    Default Re: PrintStream file manipulation

    Can you use FileWriter instead?

  3. #3
    mDennis10 is offline Member
    Join Date
    Jul 2011
    Posts
    76
    Rep Power
    0

    Default Re: PrintStream file manipulation

    does FileWriter give me the same level of flexibility

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

Similar Threads

  1. File manipulation
    By cwbr in forum New To Java
    Replies: 1
    Last Post: 11-25-2011, 11:17 AM
  2. NullPointerException with PrintStream write
    By vinci in forum Advanced Java
    Replies: 4
    Last Post: 02-05-2011, 04:21 AM
  3. Replies: 2
    Last Post: 06-14-2010, 10:18 AM
  4. Do uncaught errors appear in the PrintStream?
    By arnab321 in forum New To Java
    Replies: 1
    Last Post: 02-26-2009, 08:56 AM
  5. [SOLVED] File Movement/Manipulation
    By Leprechaun in forum New To Java
    Replies: 2
    Last Post: 04-23-2008, 12:39 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
  •