Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Parte da class Teste (Main)
- Scanner scan = new Scanner(System.in);
- System.out.println("Save data or Load data?('s', 'l')");
- char c = scan.nextLine().charAt(0);
- System.out.println("Filename?: ");
- String filename = scan.nextLine();
- Saveable s = new CSV(filename);
- //______________________________________//
- //Construtor CSV
- public CSV(String filename) throws IOException {
- this.writer = new PrintWriter(filename, "UTF-8");
- this.scanFile = new Scanner(new File(filename));
- this.filename = filename;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement