public static List<String> readTextFile(Path file) {
        if (!FileUtil.control(file)) {
            IllegalArgumentException iae = new IllegalArgumentException("The filepath is null or points to an invalid location!");
            Main.handleUnhandableProblem(iae);
        }

        return FileReader.readFile(file);
    }