Compilation error (line 51, col 27): The best overloaded method match for 'System.IO.BinaryWriter.BinaryWriter(System.IO.Stream)' has some invalid arguments
Compilation error (line 51, col 44): Argument 1: cannot convert from 'System.IO.FileMode' to 'System.IO.Stream'