using System;
using System.IO;
public class ReadBytes {
public static void Main(string[] args) {
Stream input = new FileStream("test.cs", FileMode.Open);
int i;
while((i = input.ReadByte()) != -1)
Console.Write(i + " ");
input.Close();
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok