Browse Source

fixed path in PromoCodeData; added eclipse project file

master
marcel 3 years ago
parent
commit
a88ef2009b
  1. 11
      .project
  2. 2
      3SchichtenArchitektur/src/data/PromoCodeData.java

11
.project

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Hausaufgabe</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

2
3SchichtenArchitektur/src/data/PromoCodeData.java

@ -15,7 +15,7 @@ public class PromoCodeData implements IPromoCodeData {
try {
Files.write(Paths.get(LOCATION), (code+"\n").getBytes(), StandardOpenOption.APPEND);//Hinzufügen zur Datei //newline damit nicht aneinander
Files.write(Paths.get(LOCATION), (code+"\n").getBytes(), StandardOpenOption.APPEND);//Hinzuf�gen zur Datei //newline damit nicht aneinander
return true;//Erfolgreich
}catch (IOException E) {
E.printStackTrace();

Loading…
Cancel
Save