Reads the first line from a file. The line does not include line-termination characters, but does include other leading and trailing whitespace. @param file the file to read from @param charset the charset used to decode the input stream; see StandardCharsets for helpful predefined cons
(File file, Charset charset)
| 530 | |
| 531 | |
| 532 | public static String readFirstLine(File file, Charset charset) throws IOException { |
| 533 | return asCharSource(file, charset).readFirstLine(); |
| 534 | } |
| 535 | |
| 536 | /** |
| 537 | * Reads all of the lines from a file. The lines do not include line-termination characters, but |
nothing calls this directly
no test coverage detected