mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileUtil.readLines(File) method
This commit is contained in:
@@ -1349,6 +1349,11 @@ public class FileUtil extends FileUtilRt {
|
||||
return FileUtilRt.loadText(reader, length);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static List<String> loadLines(@NotNull File file) throws IOException {
|
||||
return loadLines(file.getPath());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static List<String> loadLines(@NotNull String path) throws IOException {
|
||||
BufferedReader reader = new BufferedReader(new FileReader(path));
|
||||
|
||||
Reference in New Issue
Block a user