|
-
Mar 20th, 2001, 06:17 PM
#1
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?
-
Mar 20th, 2001, 09:55 PM
#2
Sorry, thats the only way it can be done
-
Mar 21st, 2001, 02:14 AM
#3
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|