Reading file formatted with C in C# -
i have binary file, written in c, contains long stream of numbers. first contains subsequently 4 times int (so first 16 bytes 4 ints) , contains doubles (i assume every 8 bytes new double).
there no spaces @ point or else. need read data c# far tried didn't work, suggestions?
using (binaryreader br = new binaryreader(file.open("file", filemode.open))) { int = br.readint32(); int b = br.readint32(); int c = br.readint32(); int d = br.readint32(); double e = br.readdouble(); double f = br.readdouble(); ... }
Comments
Post a Comment