1 2 3 4 5 6 7 8 9 10 11 12 13
use std::fs::read_to_string; use std::path::PathBuf; pub fn read_cell_list_file(filename: &PathBuf) -> Vec<String> { read_to_string(filename) .expect("Failed to read file with list of cells") .lines() .map(String::from) .collect() }