Changeset 310 for trunk/JavaHelperLib/src/de/ugoe/cs/util/FileTools.java
- Timestamp:
- 12/13/11 16:51:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/FileTools.java
r175 r310 2 2 3 3 import java.io.File; 4 import java.io.FileInputStream; 4 5 import java.io.FileNotFoundException; 5 6 import java.io.FileReader; 6 7 import java.io.IOException; 8 import java.io.InputStreamReader; 9 import java.nio.charset.Charset; 7 10 8 11 /** … … 55 58 boolean carriageReturn) throws IOException, FileNotFoundException { 56 59 File f = new File(filename); 57 FileReader reader = new FileReader(f); 60 FileInputStream fis = new FileInputStream(f); 61 InputStreamReader reader = new InputStreamReader(fis, 62 Charset.defaultCharset()); 58 63 char[] buffer = new char[(int) f.length()]; 59 64 reader.read(buffer);
Note: See TracChangeset
for help on using the changeset viewer.