Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2265 for trunk/tools


Ignore:
Timestamp:
08/08/09 11:21:33 (15 years ago)
Author:
gkronber
Message:

Worked on CEDMA importer. #719

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/CedmaImporter/Importer.cs

    r2263 r2265  
    120120        SymbolicExpressionImporter sexpImporter = new SymbolicExpressionImporter();
    121121        GeneticProgrammingModel model = new GeneticProgrammingModel();
    122         model.FunctionTree = sexpImporter.Import(File.OpenText(Path.Combine(dirName, modelFileName) + ".gp.txt"));
     122        using (StreamReader reader = File.OpenText(Path.Combine(dirName, modelFileName) + ".gp.txt")) {
     123          model.FunctionTree = sexpImporter.Import(reader);
     124        }
    123125        return model;
    124126      }
Note: See TracChangeset for help on using the changeset viewer.