Skip to content

Commit a131e80

Browse files
committed
Simple storage path
1 parent d565214 commit a131e80

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package seedu.duke;
2+
3+
import java.io.File;
4+
import java.io.FileNotFoundException;
5+
import java.io.FileWriter;
6+
import java.util.Scanner;
7+
8+
/**
9+
* storage for flashcards
10+
* Flashcard implementation should be finished first
11+
*/
12+
public class Storage {
13+
// simply implemented for save & load first
14+
15+
protected String path;
16+
17+
public Storage(String path){
18+
this.path = path;
19+
}
20+
21+
22+
public void loadFlashcards() throws FileNotFoundException{
23+
24+
File f = new File (this.path);
25+
Scanner s = new Scanner(f);
26+
27+
}
28+
}

0 commit comments

Comments
 (0)