advanced file modification in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #1

    advanced file modification in java

    suppose i open a file in write mode.
    if the file exists then the new content will be overwritten and the file opened in append mode then the exsiting file content will be appended.

    can't i do like this ????? .... that i reposition the file pointer and modify some content in between some contents of the file.

    i think this is not possible in java.
    but could anyone tell me that why java does not support this?
    because SUN had that in their mind ... yet they not provided this.why?????

    plz help.
    kind regards.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Have a look at the RandomAccessFil e class.

    kind regards,

    Jos

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      ohhhh sorrry ...what a fool ..........me.

      i never think that ... having a great marketing of a language this facility is missing ....this is quite impossible.

      thanx for u help.
      kind regards.

      Comment

      Working...