use std::fs;
use std::io::{self, Write};
pub fn read_file(path: &str) -> Result<String, String> {
fs::read_to_string(path).map_err(|e| e.to_string())
}
pub fn write_file(path: &str, content: &str) -> Result<(), String> {
fs::write(path, content).map_err(|e| e.to_string())
}