码迷,mamicode.com
首页 > 其他好文 > 详细

xiaochengxu

时间:2019-12-10 22:10:28      阅读:92      评论:0      收藏:0      [点我收藏+]

标签: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();

}
}

xiaochengxu

标签:public   row   ++   直接   rgs   txt   string   sys   cep   

原文地址:https://www.cnblogs.com/YRSWBY2016/p/12019282.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!