Read an entire file at one time. Intended primarily for Linux /proc filesystem to avoid recalculating file contents on iterative reads. @param filename The file to read @return A list of Strings representing each line of the file, or an empty list if file could not be read or is
(String filename)
| 69 | * list if file could not be read or is empty |
| 70 | */ |
| 71 | public static List<String> readFile(String filename) { |
| 72 | return readFile(filename, true); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Read an entire file at one time. Intended primarily for Linux /proc |