Metaheuristic (tree-based) : file reading function