A Rust library for reading binary MIDAS files. Midasio provides a useful API to iterate over events, iterate over data banks, and extract the raw data from the data banks.
Add the following to your Cargo.toml
file:
toml
[dependencies]
midasio = "0.4"
Reading a MIDAS file is as simple as:
```rust
use std::fs;
use midasio::read::file::FileView;
let contents = fs::read("example.mid")?; let fileview = FileView::tryfrom(&contents[..])?;
for event in file_view { // Do something with each event in the file. for bank in event { // Do something with each data bank in the event. } } ```