Changeset 402 for trunk/JavaHelperLib/src/de/ugoe/cs/util/FileTools.java
- Timestamp:
- 03/20/12 11:52:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/FileTools.java
r330 r402 31 31 * <p> 32 32 * Returns an array of the lines contained in a file. The line separator is 33 * "\r\n".33 * {@link StringTools#ENDLINE}. 34 34 * </p> 35 35 * … … 45 45 public static String[] getLinesFromFile(String filename) 46 46 throws IOException, FileNotFoundException { 47 return getLinesFromFile(filename, true); 47 boolean carriageReturn = true; 48 if( StringTools.ENDLINE.equals("\n") ) { 49 carriageReturn = false; 50 } 51 return getLinesFromFile(filename, carriageReturn); 48 52 } 49 53
Note: See TracChangeset
for help on using the changeset viewer.