diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java index 2f2cf2c..b1390d0 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java @@ -20,6 +20,7 @@ public class Axel { String readInput; String currentCell; String formula; + String path; spr.put("A3", "123"); spr.put("A2", "1"); @@ -47,6 +48,19 @@ public class Axel { //set values in cells System.out.println(); + + System.out.println("Do you want to load a csv File?(y/n)"); + readInput=sc.nextLine(); + if(readInput.equals("y")||readInput.equals("Y")) { + System.out.println("Paste the filpath here:"); + readInput= sc.nextLine(); + path=readInput; + spr.readCsv(path, ",", "A1"); + + + } + + System.out.println("cell name:"); readInput= sc.nextLine();