pub fn write_to_file(file_path: &str, content: &str) -> Result<(), MyError>
Function to parse content and write it to the file