Results 1 to 2 of 2

Thread: Write to the middle of a file

  1. #1
    BarnesHarris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    213
    Rep Power
    3

    Default Write to the middle of a file

    I write to a file that already contains data. No crush after that, I will write its data in a row after a 10-th character in my file. It's not really useful for me and for my program. I just use the methods between FileOutputStream and others. So, if you guys know any other methods, then you can help me. In short, I want to write in the middle of the file.

  2. #2
    HowardAllen is offline Senior Member
    Join Date
    Dec 2009
    Posts
    196
    Rep Power
    3

    Default

    You have the choice to use the method used by written above, but it is not very optimized, and that may take some time, if the file is very large. If you normally use File-Channel class which allows you to do it. I think you should look for cards in Java, and you should find another way to do this. But I think, File-Channel method is an effective choice here that is for your program.

Similar Threads

  1. Javascript write to file
    By HowardAllen in forum Programming
    Replies: 2
    Last Post: 07-19-2010, 02:26 PM
  2. Open and write text file in JAVA
    By Davismoore in forum Programming
    Replies: 2
    Last Post: 03-26-2010, 02:50 PM
  3. Paste File in Write Protected Drive(c)
    By WilsonMartin in forum Hard Disk
    Replies: 1
    Last Post: 03-05-2010, 05:35 PM
  4. AMD phenom II x4 820 VS Intel middle 2 duo E8400 PC
    By ThomasBarnes in forum Motherboard
    Replies: 1
    Last Post: 02-11-2010, 03:40 PM
  5. Business Database Dubai, Middle East and Asia Country
    By akazim7 in forum General Networking
    Replies: 0
    Last Post: 11-17-2009, 08:33 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48