Skip to main content

open_file

Function open_file 

Source
pub fn open_file<P: AsRef<Path>>(path: P) -> Result<File>
Expand description

Opens a file and provides a more informative error message if the file is not found.

ยงExamples

use seqkmer::open_file;
use std::path::Path;

let path = Path::new("tests/data/test.fasta");
let file = open_file(path)?;