using System;using System.ComponentModel;using System.IO; cl…
using System;using System.ComponentModel;using System.IO; class FileStreamReadExample{ static void Main() { // Opens or creates if it doesn’t exist, // with read/write access using (FileStream fs = new FileStream(“test.bin”, FileMode.OpenOrCreate, FileAccess.ReadWrite)) { byte buffer = new byte; int bytesRead = fs.Read(buffer, 0, buffer.Length); Console.WriteLine($”Read {bytesRead} bytes.”); } }}