public void addRecords(String record, int value){
openFile();
System.out.println("Records added.");
switch(record){
case "brick":
x.format("%s%n", "brick " + value);
closeFile();...
Type: Posts; User: LavaJava
public void addRecords(String record, int value){
openFile();
System.out.println("Records added.");
switch(record){
case "brick":
x.format("%s%n", "brick " + value);
closeFile();...
I am trying to write to a text file with information stored like this.
brick 500
stone 500
And so on. Here is the code I am using to write to the file.
switch(record){
case "brick":
Thank you for the response!
I have come to the conclusion that the while loop is not running. When I call the readResource() method from the main function it works just fine, but when it's called...
Sorry if I sound like I don't know what I'm talking about, but anyways. I'm trying to change the value of bricks in my save file and for some reason it can't read the information.
public void...