Skip to content

Commit

Permalink
fix: updated save file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeeetyx committed Feb 16, 2023
1 parent 2b77d92 commit 6995522
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: duke.Duke

2 changes: 0 additions & 2 deletions src/main/java/duke.txt

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/duke/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

public class Duke {
static final int USER_INPUT_EXPECTED_SIZE = 2;
static final String FILE_PATH = "src/main/java/duke.txt";
static final String FILE_PATH = "./duke.txt";

public static void main(String[] args) {
showWelcomeMessage();

File F = new File(FILE_PATH);
if (!F.exists()) {
new File("duke.txt");
F = new File("./duke.txt");
}

ArrayList<Task> taskList = new ArrayList<>();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/duke/print/Print.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static void showWelcomeMessage() {
println(" mark [task number] --> to mark a task as done");
println(" unmark [task number] --> to unmark a task (i.e. not done)");
println(" list --> to show the lists of tasks");
println(" delete [task number] --> to delete a task");
println(" bye --> to exit the program");

println("");
Expand Down

0 comments on commit 6995522

Please sign in to comment.