Skip to content

Commit

Permalink
Level-7
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcube committed Oct 5, 2023
1 parent 2840b04 commit d9e74d0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/Dukey.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ public static void printTaskList(ArrayList<Task> tasks) {
}
}

private static void printFileContents(String filePath) throws FileNotFoundException {
File f = new File(filePath); // create a File for the given file path
Scanner s = new Scanner(f); // create a Scanner using the File as the source
while (s.hasNext()) {
System.out.println(s.nextLine());
}
}

private static void writeToFile(String filePath, String textToAdd) throws IOException {
FileWriter fw = new FileWriter(filePath, true);
fw.write(textToAdd);
fw.close();
}

// appends the last index of the task array into the file
private static void taskArrayToFile(String filePath, ArrayList<Task> tasks) throws IOException {
FileWriter fw = new FileWriter(filePath, true);
Expand Down

0 comments on commit d9e74d0

Please sign in to comment.