While waiting for the new stream I wrote myself a stream for file io only. http://dpaste.dzfl.pl/bc470f96b357 Hope it helps your work somehow. Maybe at least the unittests are helpful?