Save a byte array as a file in (C#)

//to save binary files:
//using System.IO;
//responseBytes is the byte array
FileStream fs = new FileStream("c:\\result3.csv", FileMode.Create, FileAccess.ReadWrite);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(responseBytes);
bw.Close();