Changeset 13460 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Instances/BPPORLIBParser.cs
- Timestamp:
- 12/14/15 18:59:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Instances/BPPORLIBParser.cs
r13032 r13460 64 64 /// <returns>True if the file was successfully read or false otherwise.</returns> 65 65 public void Parse(Stream stream) { 66 var reader = new StreamReader(stream); 67 var delim = new char[] { ' ', '\t' }; 66 var reader = new StreamReader(stream); 67 var delim = new char[] { ' ', '\t' }; 68 68 var problemClass = reader.ReadLine().Split(delim, StringSplitOptions.RemoveEmptyEntries); 69 69 … … 118 118 Description = "<Missing>"; 119 119 } 120 120 121 121 122 122 } … … 135 135 else 136 136 writer.WriteLine("{0,-5} {1,-5} {2,-5}", ItemMeasures[i][0], ItemMeasures[i][1], ItemMeasures[i][2]); 137 137 138 } 138 139 writer.Flush();
Note: See TracChangeset
for help on using the changeset viewer.