- Timestamp:
- 12/13/11 16:51:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/defaultcommands/CMDexec.java
r244 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; 7 9 import java.security.InvalidParameterException; 8 10 import java.util.List; … … 38 40 String[] commands; 39 41 File f = new File(script); 40 FileReader reader = new FileReader(f); 42 FileInputStream fis = new FileInputStream(f); 43 InputStreamReader reader = new InputStreamReader(fis, "UTF-8"); 41 44 char[] buffer = new char[(int) f.length()]; 42 45 reader.read(buffer);
Note: See TracChangeset
for help on using the changeset viewer.