Re: Fastest Way to Append Chars to Text File Rows in VB6.0
- From: "Bob Butler" <tiredofit@xxxxxxxxxx>
- Date: Mon, 13 Jun 2005 08:11:13 -0700
"RitaG" <RitaG@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2C3497B8-395E-4BEB-A17E-304B82D7AD5D@xxxxxxxxxxxxx
> Hi.
>
> I have about 60 text files containing rows 496 chars long. I need to
> cycle through all these files and append some additional chars at the
> end of each row. Some of the files are large, containing over 1
> million rows.
>
> The options I'm currently thinking of are the FileSystemObject
> ReadLine (I may run out of memory using ReadAll), append the chars at
> the end of the line and then use WriteLine to write to an output
> file. I could also use the "Open" file method using a handle and the
> Print # statement. I don't know which is the fastest way.
Using the FSO is pretty much guaranteed to be the slowest option. I'd go
with the VB statements. You might be able to get some extra speed by using
API calls but I'd be surprised if it'd be really significant.
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
.
- References:
- Prev by Date: Re: Fastest Way to Append Chars to Text File Rows in VB6.0
- Next by Date: Re: Fastest Way to Append Chars to Text File Rows in VB6.0
- Previous by thread: Re: Fastest Way to Append Chars to Text File Rows in VB6.0
- Next by thread: Control GotFocus help
- Index(es):
Relevant Pages
|