Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          io/filestream-ex/1/write-prog.cs - A program that writes bytes corresponding to 'O' 'O' 'P' to a file stream.Lecture 10 - slide 6 : 40
Program 1

using System.IO;

class ReadProg {
  static void Main() {
    Stream s = new FileStream("myFile.bin", FileMode.Create);
    s.WriteByte(79);  // O    01001111
    s.WriteByte(79);  // O    01001111
    s.WriteByte(80);  // P    01010000
    s.Close();
  }
}