Simple reading of binary data
webwraith at fastmail.fm
Sat Oct 27 04:06:08 PDT 2012
I'm having real trouble reading binary data from a file. I've
been trying to use the functions from std.stdio, but keep running
into problems. When I try;
auto file = new File( "some binary file" );
file.readf( "%d", &b );
I get "Unexpected '┬Ç' when converting from type
LockingTextReader to type int"
What functions do I use to read individual bytes, shorts, ints,
longs and the like?
More information about the Digitalmars-d-learn