|
-
Oct 15th, 1999, 03:16 AM
#1
Thread Starter
Lively Member
How do I delete the last 200 bytes of a file??
And add text to the end of the file ??
-
Oct 15th, 1999, 04:05 AM
#2
You would need to Read the File in and Output it again, excluding the last 200 Bytes. If it's a Text File use Input/Ouput else use Binary Access File.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 18th, 2000, 07:29 AM
#3
dim qwe as string
open file for binary as #1
qwe = space(LOF(1))
get #1 , , qwe
close #1
MyTruncatedString = left(qwe,len(qwe)-200)
'hope it helps
-
Jan 18th, 2000, 07:31 AM
#4
...that was just to truncate the last 200 bytes.
You know how to add a string to another...
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
|