|
-
Jul 16th, 2000, 01:28 AM
#1
Thread Starter
Fanatic Member
if a file had these in it
1.AAA
2.BBB
3.CCC
and i wanted to get rid of the CCC but keep the 3. what would be the fastest way?
I always make slow code for this using arrays
[b]Dim Index(5000) as string
Dim indexControl as integer
indexcontrol = 0
then i read the chunk input #1, a$
and then do a
for i = 1 to len(a$)
if the code finds the chunk it rewrites it by loading it into the array and killing the file.
Is there a better way? I was thinking of binary replacing the string with chr32.
?
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
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
|