A binary reader/writer for the rust language, with a similar syntax to the C# BinaryWriter and BinaryReader
Example code for reading
```rust extern crate binaryrw; use binaryrw::{BinaryReader, OpenType};
fn main() { let mut binary_file = BinaryReader::new("data.dat", OpenType::OpenAndCreate).expect("Failed to create reader");
let readvalue = binaryfile.readf32().expect("Failed to write f32"); println!("{:?}", readvalue); } ```
Example code for writing ```rust extern crate binaryrw; use binaryrw::{BinaryWriter, OpenType};
fn main() { let mut binary_file = BinaryWriter::new("data.dat", OpenType::Open).expect("Failed to create writer");
let value: f32 = 30.5; binaryfile.writef32(value).expect("Failed to write f32"); } ```