1 2 3 4 5 6 7 8 9
use anyhow::Result; use log::debug; use std::{fs, path::PathBuf}; pub fn read_csv(path: &PathBuf) -> Result<String> { debug!("Reading file from path: {:?}", path); let content = fs::read_to_string(path)?; Ok(content) }