Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int inicio(){
- try {
- FileReader fr = new FileReader("/home/jhenrip/IdeaProjects/POOConvivio/dados/inicio.txt");
- BufferedReader br = new BufferedReader(fr);
- if (br.readLine().equals("0")){ //primeira vez a abrir o programa
- return 0;
- }
- else {
- return 1;
- }
- }
- catch (FileNotFoundException ex) {
- System.out.println("ERROR: inicio.txt não encontrado");
- }
- catch (IOException e) {
- e.printStackTrace();
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement