Overwrite the first few bytes of a file

[b][red]This message was edited by pascal-coder at 2006-9-17 2:53:50[/red][/b][hr]
Is ist possible to overwrite the first few bytes of a file to make it useless and to undo this change later to make it usable again?

Thanks in advance


Comments

  • : [b][red]This message was edited by pascal-coder at 2006-9-17 2:53:50[/red][/b][hr]
    : Is ist possible to overwrite the first few bytes of a file to make it useless and to undo this change later to make it usable again?
    :
    : Thanks in advance
    :
    :
    :
    Yes. You can open the file using a TFileStream. Then use it's methods to perform the write action. See help files for more info on the TFileStream object.
  • Thanks i'll try :)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories