Re: Appending files



On 22 Sep, 18:12, "vertuas" <vert...@xxxxxxxxxxxxxxxxx> wrote:
Hi all,

I need my application to append some rather large files, (almost 2 gig
each).

I am currently opening each file into tfilestream objects, on then using
copyfrom function to append one stream to the end if another.

As i am appending all of the file, if there a faster was to do the append.
Get windows to chaneg to filesystem pointer, for example, to make 3 files
appear as one?

If there a faster way to copy the stream than tfilestream.copyfrom? This
takes ages to copy all the data over.


Try using the "COPY <SrcFile1> + <SrcFile2> <DestFile>" command in a
DOS window (if you have one) . I would guess that that might be the
fastest to use as a benchmark to compare with your stream method.

Setting a large TStream.Size to start with may help.

Alan Lloyd

.



Relevant Pages

  • Re: Data sent - flushing remainder
    ... i could append the data size to be expected to the first 4 bytes. ... continue to receive that excess data as my socket remains open listening. ... Are you saying i should receive until i get the full amount of data being ... to my cumulative memory stream ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to merge .wav files
    ... the first 44 bytes of a wav-file is the header. ... of the stream in bytes. ... Then you append the stream to the file. ... If you get hold of a description of a wave-header you should be ...
    (comp.lang.perl.misc)
  • Re: How to merge .wav files
    ... the first 44 bytes of a wav-file is the header. ... > append one wave-file to another, you first have to strip off the first ... > Then you append the stream to the file. ...
    (comp.lang.perl.misc)
  • Appending columns
    ... I have an application that exports a stream of data to Excel. ... program runs it append to the previous run in column A. The data for each ...
    (microsoft.public.excel.misc)
  • Re: Writing listbox items into text file
    ... Check the Stream Classes and their derivates ... classes instead of using Stream Writer's "writeline" method. ... If append is true, previous + current items are saved into text file. ... i want to save what and how i see in listbox items as text ...
    (microsoft.public.dotnet.languages.vb)