- Timestamp:
- 06/16/11 14:16:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/LogPreprocessor.java
r52 r74 10 10 import org.apache.commons.codec.binary.Base64; 11 11 12 import de.ugoe.cs.util.FileTools; 12 13 import de.ugoe.cs.util.StringTools; 13 14 import de.ugoe.cs.util.console.Console; … … 65 66 private void processFile(String source, OutputStreamWriter targetFile) 66 67 throws FileNotFoundException, IOException { 67 File f = new File(source); 68 FileReader reader = new FileReader(f); 69 char[] buffer = new char[(int) f.length()]; 70 reader.read(buffer); 71 reader.close(); 72 String[] lines = (new String(buffer)).split("\n"); 68 String[] lines = FileTools.getLinesFromFile(source, false); 73 69 String incompleteLine = ""; 74 70 // Open source and read line by line
Note: See TracChangeset
for help on using the changeset viewer.