Results 1 to 2 of 2

Thread: Inserting into files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116

    Post

    When you open a binary file and you use the Put statement to write to the file, it replaces the byte at that position unless it is the end of the file. How can i say insert a character into the 5th position without replacing that byte???

    ------------------
    YC Sim
    Teenage Programmer
    UIN 37903254


  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You would need to Read the file in,
    then Write it back out inserting the Character(s)/Byte(s) in the Appropriate Section.


    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

Posting Permissions

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



Click Here to Expand Forum to Full Width