Sorry you do not have frames enabled. Here is the link of the tutorial:
http://www.dotnetindex.com/articles/3555_Writing_binary_files_using_BinaryWriter.asp