actually, kf .net can do random sized files just fine.
just use the setLength() method of fileStream.

on the other hand, if one doesn't want any dependencies, the code by bryce is the best.
it has the problem that what longer the file is, that longer it takes to create it.
_________________________
!

download KiXnet