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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -