Re: One problem I think
From: Karl E. Peterson (karl_at_mvps.org)
Date: 02/02/05
- Next message: Randy Gardner: "Special Thanks to Gerald Hernandez and ALL who helped !!!"
- Previous message: Les: "Re: One problem I think"
- In reply to: Les: "Re: One problem I think"
- Next in thread: Les: "Re: One problem I think"
- Reply: Les: "Re: One problem I think"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Feb 2005 11:49:29 -0800
Les wrote:
>> One other possibility is to build the entire file into a String
>> variable in memory. When you are done, remove the last newline
>> character sequence from the last line and then simply Print that
>> String variable to the file.
>
> Well this looks as if it will work but do to the large file size I
> prefer not to work with concatenation since this would severly slow
> things down.
How large? If you're "only" talking a few hundred megs...
> It would also mean, I think, that I could not use the
> Print # command since I believe this tags a CR/LF onto the end of
> each new line of text. Hmmm I will have to rethink this a bit.
> Perhaps there is some other simple solution that evades me at the
> moment I just dont know.
I'll direct you to http://vb.mvps.org/samples/StrBldr for a dirt-simple way of
*dramatically* increasing the performance of a routine "concatenation" exercise by
preallocating the buffer and stuffing it piece by piece.
Later... Karl
-- [Microsoft Basic: 1976-2001, RIP]
- Next message: Randy Gardner: "Special Thanks to Gerald Hernandez and ALL who helped !!!"
- Previous message: Les: "Re: One problem I think"
- In reply to: Les: "Re: One problem I think"
- Next in thread: Les: "Re: One problem I think"
- Reply: Les: "Re: One problem I think"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|