I want to create fairly large blank files to use as emulated disk images.
I would like the files to contain only H"00" characters.
I have tried creating a 5MB memory block ( supposedly initialised to H"00"s ), obtaining its string value, and writing that over and over, but is is pretty slow. ( Platter drive, no SSD ).
dim bs as BinaryStream
if f.Exists then
bs = BinaryStream.Open( f, true )
else
bs = BinaryStream.Create( f )
end if
bs.Length = 0
bs.Length = kFileSize
bs.Close