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)
| 499 | * @throws IOException if an I/O error occurs |
| 500 | */ |
| 501 | public static String readFirstLine(File file, Charset charset) throws IOException { |
| 502 | return asCharSource(file, charset).readFirstLine(); |
| 503 | } |
| 504 | |
| 505 | /** |
| 506 | * 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