Re: Fastest Way to Append Chars to Text File Rows in VB6.0

Tech-Archive recommends: Speed Up your PC by fixing your registry



"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..."

.



Relevant Pages

  • Re: Fastest Way to Append Chars to Text File Rows in VB6.0
    ... you might consider reading them also in ... >>> cycle through all these files and append some additional chars at the ...
    (microsoft.public.vb.general.discussion)
  • Re: inserting in a file
    ... and thereby overwrite whatever I wrote earlier, ... append the new information to the first ... will move to the offset 0 in the 2nd block. ... All the other chars of the ...
    (comp.lang.c.moderated)
  • Re: Fastest Way to Append Chars to Text File Rows in VB6.0
    ... RitaG wrote: ... > I have about 60 text files containing rows 496 chars long. ... > cycle through all these files and append some additional chars at the ...
    (microsoft.public.vb.general.discussion)
  • Re: fixed width text file
    ... If you assume every line was 80 chars in length and append a carriage return ... John Timney (MVP) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Fastest Way to Append Chars to Text File Rows in VB6.0
    ... I have about 60 text files containing rows 496 chars long. ... I need to cycle ... may run out of memory using ReadAll), append the chars at the end of the line ... Rita ...
    (microsoft.public.vb.general.discussion)