// TODO: Error handling, functions to return parts of the config to other functions
Error handling, functions to return parts of the config to other functions
Error handling functions to return parts of the config to other functions
pub fn read_config() -> Ini {
    // Read in the config file
    let config_file = fs::read_to_string("config.ini").expect("Failed to read file");
    // Parse the config
    let mut config = Ini::new();
    config.read(config_file);
    return config;
}
pub fn read_config ( ) -> Ini { // Read in the config file let config_file = fs :: read_to_string ( " " ) . expect ( " " ) ; // Parse the config let mut config = Ini :: new ( ) ; config . read ( config_file ) ; return config ; }
TODO: Error handling, functions to return parts of the config to other functions
TODO : Error handling functions to return parts of the config to other functions