|
-
Jan 20th, 2000, 10:40 PM
#1
Thread Starter
Hyperactive Member
Hi! I have code like this:
OPEN "image.ico" FOR BINARY AS #1
OPEN "temp.ico" FOR BINARY AS #2
temp = GET(#1,LOF(1))
PUT #2,temp
CLOSE
but this adds some characters to temp.ico before the beginning of image.ico. It cannot be resolved by RIGHT or such statements. What shoud I do?
------------------
Thanks,
John, 14 years old
-
Jan 21st, 2000, 04:15 PM
#2
Lively Member
Try this:
dim temp as string
Open "image.ico" for binary as #1
Open "temp.ico" for binary as #1
temp = string(lof(1),chr(0))
get #1,,temp
put #2,,temp
close #1
close #2
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
|