Results 1 to 3 of 3

Thread: Shortening Binary Files

  1. #1
    lord_dude
    Guest

    Angry

    How do you chop the end off a binary file (eg make a 100 bytes file 90 bytes)? The only way i can think of is to write the file out again - the part you want to get rid of but this would be very slow and i am sure there must be an easier way i hav't thought of?

  2. #2
    Guest

    Thumbs down

    Sorry, thats the only way it can be done

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    it doesn't have to be slow.
    if it is a small file, and you have it stored in a string buffer, then "open filename as #1 for output"
    print #1, left$(buffer$, 90)
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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