diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 | 
1 files changed, 3 insertions, 6 deletions
@@ -3,6 +3,7 @@ evtclib  [](https://crates.io/crates/evtclib)  [](https://docs.rs/evtclib) +[](https://opensource.org/licenses/MIT)  `evtclib` is a Rust library that allows you to parse `.evtc` files, as  generated by the [arcdps addon](https://www.deltaconnected.com/arcdps/) for the @@ -25,12 +26,8 @@ Example  use std::fs::File;  fn main() -> Result<(), Box<dyn std::error::Error>> { -    // Open a file for processing -    let mut file = File::open("Skorvald/20200421-183243.evtc")?; -    // Parse the raw content of the file -    let raw_log = evtclib::raw::parse_file(&mut file)?; -    // Process the file to do the nitty-gritty low-level stuff done -    let log = evtclib::process(&raw_log)?; +    // Parse a log +    let log = evtclib::process_file("Skorvald/20200421-183243.evtc")?;      // Do work on the log      for player in log.players() {          println!("Player {} participated!", player.account_name());  | 
