Answer the question
In order to leave comments, you need to log in
How to merge several files into one without unnecessary copying?
There are several large files, I want to "glue" them into one big one. The original files may not be saved. Tell me, are there any standard tools in the Windows world? Or a third party utility? Or at least how to write it by hand, for example, in python?
I don't like the head-on 'copy a + b c' option, because will create a copy, spending extra time and space on this procedure.
Answer the question
In order to leave comments, you need to log in
You need to know the materiel ...
copy /b file1 + file2 + file3 result
cat file2 >> file1
doesn't work? On Windows, streams also work, I don’t remember how cat is done, though
upd: stackoverflow.com/questions/60244/is-there-replacement-for-cat-on-windows
And how is it “do not save the original files”, but you need to glue large existing files together? Do the files exist or not yet?
If there is, then through append (>> or +). If not, then the program that creates them must append when it opens a file of the same name.
In python, this is open('filename.bin','aw')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question