This commit is contained in:
2026-07-05 15:14:46 +03:30
parent 83746b88f6
commit 41979c1752
12 changed files with 142 additions and 156 deletions
+1 -11
View File
@@ -2,31 +2,21 @@ package dev.utils;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
public class FileManager {
public static List<String> loadStudents(String path) throws Exception {
List<String> lines = new ArrayList<>();
BufferedReader reader = new BufferedReader(new FileReader(path));
String line;
while ((line = reader.readLine()) != null) {
// TODO:
// Add line to list
lines.add(line);
}
reader.close();
return lines;
}
}