saikamesh saikamesh - 4 years ago 234
C# Question

DataInputStream class Equivalent in C#

I want to know what is the Java DataInputStream class equivalent in C#

Answer Source

You are looking for BinaryReader:

var reader = new BinaryReader(myStream);
var value = reader.ReadInt32();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download