Changeset 83
- Timestamp:
- 06/23/11 11:03:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/FileTools.java
r73 r83 26 26 * </p> 27 27 * @param filename name of the file 28 * @param car iageReturn if true, "\r\n", if false "\n" is used as line seperator28 * @param carriageReturn if true, "\r\n", if false "\n" is used as line seperator 29 29 * @return string array, where each line contains a file 30 30 * @throws IOException see {@link FileReader#read(char[])}, {@link FileReader#close()} 31 31 * @throws FileNotFoundException see {@link FileReader#FileReader(File)} 32 32 */ 33 public static String[] getLinesFromFile(String filename, boolean car iageReturn) throws IOException, FileNotFoundException {33 public static String[] getLinesFromFile(String filename, boolean carriageReturn) throws IOException, FileNotFoundException { 34 34 File f = new File(filename); 35 35 FileReader reader = new FileReader(f); … … 38 38 reader.close(); 39 39 String splitString; 40 if( car iageReturn ) {40 if( carriageReturn ) { 41 41 splitString = "\r\n"; 42 42 } else {
Note: See TracChangeset
for help on using the changeset viewer.