import java.util.*;
import java.io.*;
class PropertyDemo1
{
public static void main(String[] args) throws IOException
{
Properties prop=new Properties();
File file=new File("count.txt");
if (!file.exists())
file.createNewFile();
FileInputStream fis=new FileInputStream(file);
// 把下面注释的那句代码移动到这里, 为什么结果就不一样
prop.load(fis);
int count=0;
String value=prop.getProperty("time");
if (value!=null)
count=Integer.parseInt(value);
if (count>=5)
{
System.out.println("请充值");
return;
}