using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
using (BinaryReader br = new BinaryReader(File.Open("d:\\data.bin", FileMode.Open)))
{
int pos = 0;
int length = (int)br.BaseStream.Length;
while (pos < length)
{
int i = br.ReadInt32();
Console.WriteLine(i);
pos += sizeof(Int32);
}
}
}
}
}
/*
run:
24
45
94
41
70
73
26
60
36
58
*/