Hej mam pewien problem mianowicie chce zrobić program który po nacisnieciu dodaj wczyta wartość plik.txt doda do niego 20 oraz zapisze
i tu się pojawia pytanie jak to zrobić
mam takie cos i gdy chce dodac 20 to jest blad
tmp =+ add;
public void data(){
String filename = "data/cos.txt";
BufferedReader reader = null;
try{
reader = new BufferedReader(new FileReader(filename));
String tmp = null;
while((tmp = reader.readLine()) !=null){
int add = 20;
System.out.println(tmp);
}
}catch(IOException e){
}
}