标签:public row ++ 直接 rgs txt string sys cep
public class One {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("20190815\\bw.txt"));
String line = br.readLine();//只有一个数据,直接读取一次就可以了
br.close();
int count = Integer.parseInt(line);
if(count == 3){
System.out.println("本软件只能免费使用3次,欢迎您注册会员后继续使用");
}else{
System.out.println("欢迎使用本软件,第"+ ++count + "次使用免费");
}
BufferedWriter bw = new BufferedWriter(new FileWriter("20190815\\bw.txt"));
bw.write(48+count);
bw.close();
}
}
标签:public row ++ 直接 rgs txt string sys cep
原文地址:https://www.cnblogs.com/YRSWBY2016/p/12019282.html