Re: Simple reading of binary data

2012-10-27 Thread Matt
On Saturday, 27 October 2012 at 11:06:09 UTC, Matt wrote: 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; byte b; auto file = new File( "some binary file" ); file.readf( "%d", &b ); I ge

Simple reading of binary data

2012-10-27 Thread Matt
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; byte b; auto file = new File( "some binary file" ); file.readf( "%d", &b ); I get "Unexpected '€' when converting from type LockingTextRe