package src;
import java.io.*;
public class Jsq {
static int i=0;
public static String get() throws IOException
{
File f=new File("c://t.txt");
if(!f.exists())f.createNewFile();
BufferedReader br=new BufferedReader(new FileReader(f));
String str=br.readLine();
br.close();
return str;
}
public static void set() throws IOException
{
String str=get();
if(str!=null)
i=Integer.parseInt(str);
i++;
PrintWriter pw=new PrintWriter(new BufferedWriter(new FileWriter("c://t.txt",false)));
pw.write(String.valueOf(i));
pw.close();
}
public static void main(String args[])
{
try {
Jsq.set();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
import java.io.*;
public class Jsq {
static int i=0;
public static String get() throws IOException
{
File f=new File("c://t.txt");
if(!f.exists())f.createNewFile();
BufferedReader br=new BufferedReader(new FileReader(f));
String str=br.readLine();
br.close();
return str;
}
public static void set() throws IOException
{
String str=get();
if(str!=null)
i=Integer.parseInt(str);
i++;
PrintWriter pw=new PrintWriter(new BufferedWriter(new FileWriter("c://t.txt",false)));
pw.write(String.valueOf(i));
pw.close();
}
public static void main(String args[])
{
try {
Jsq.set();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}