thx 4 reply.

Yeah, by looking answers to ppls questions who had same problem, this seems to be only solution
But its big problem with such file sizes, about 700MB read into memory or temporary file and ...
blah.
Well, i will put this work and then i will think about, how to optimize it somehow. Im testing it with small files right now. To see how it works.