Changeset 13445 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs
- Timestamp:
- 12/09/15 10:48:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs
r13442 r13445 142 142 var len = new System.IO.FileInfo(fileName).Length; 143 143 var buf = new char[64 * 1024]; 144 var reader = new StreamReader(File.OpenRead(fileName)); 145 reader.ReadBlock(buf, 0, buf.Length); 144 using(var reader = new StreamReader(fileName)) { 145 reader.ReadBlock(buf, 0, buf.Length); 146 } 146 147 int numNewLine = 0; 147 148 int charsInCurrentLine = 0, charsInFirstLine = 0; // the first line (names) and the last line (incomplete) are not representative
Note: See TracChangeset
for help on using the changeset viewer.