feat: Set up project skeleton with stub implementations for student tasks
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
reader.close();
|
||||
|
||||
return lines;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user