fn read_config_file() -> Result<Value, FileReadError> {
    println!("Reading config file...");
    let data = read_file("config.json")?;
    let config_str = str::from_utf8(&data)?;
    /*let config_str = r#"
    {
        "default": "myfile.json"
    }"#;*/
    println!("Config read: {}", config_str);
    let v: Value = serde_json::from_str(config_str)?;

    Ok(v)
}
// private function to read default file path from config file
private function to read default file path from config file
private function to read default file path from config file
fn read_config_file() -> Result<Value, FileReadError> {
    println!("Reading config file...");
    let data = read_file("config.json")?;
    let config_str = str::from_utf8(&data)?;
    /*let config_str = r#"
    {
        "default": "myfile.json"
    }"#;*/
    println!("Config read: {}", config_str);
    let v: Value = serde_json::from_str(config_str)?;
    Ok(v)
}
fn read_config_file ( ) -> Result < Value , FileReadError > { println ! ( " " ) ; let data = read_file ( " " ) ? ; let config_str = str :: from_utf8 ( & data ) ? ; /*let config_str = r#"
    {
        "default": "myfile.json"
    }"#;*/ println ! ( " " config_str ) ; let v : Value = serde_json :: from_str ( config_str ) ? ; Ok ( v ) }
private function to read default file path from config file
private function to read default file path from config file