Results 1 to 2 of 2
  1. #1
    couling is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default Modifying a few bytes in a large file - stupid question.

    Hi All

    This seems a bit of a silly question, but this is something I've never had to do before.
    I'm looking for a way to modify a few bytes (< 10). Spread out across a large file (>200MB).

    Is there any simple way to do this without pumping a FileInputStream to a FileOutputStream and modifying the apropriate bytes as they come through?

    Regards
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

  2. #2
    couling is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default Re: Modifying a few bytes in a large file - stupid question.

    Ah. Just answered my own question. never mind.
    MappedByteBuffer and FileChannel.
    Thanks for reading anyway.
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

Similar Threads

  1. simple question feel stupid asking...
    By IYIaster in forum New To Java
    Replies: 3
    Last Post: 10-02-2009, 06:04 PM
  2. Modifying text file
    By right2001 in forum New To Java
    Replies: 7
    Last Post: 04-13-2009, 09:41 AM
  3. Modifying text file
    By right2001 in forum New To Java
    Replies: 7
    Last Post: 04-08-2009, 02:18 AM
  4. a really stupid question
    By SwinGirl in forum NetBeans
    Replies: 10
    Last Post: 06-25-2008, 10:06 PM
  5. Quick Stupid Question
    By bluekswing in forum New To Java
    Replies: 7
    Last Post: 01-08-2008, 07:35 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
  •