I am new to java and I have a problem with finding a file I created that is usually visible within Eclipse.After running and refreshing multiple times I still don't see it.Here is my code, any help would be welcome.
Scanner input = new Scanner(System.in);
Scanner x= new Scanner(System.in);
System.out.println("You got a high score!");
System.out.println();
System.out.println("Please enter your score: ");
int score = input.nextInt();
System.out.println("Please enter your name: ");
String name = x.nextLine();
input.close();
File file = new File("highscore.txt");
try(BufferedWriter bw = new BufferedWriter(new FileWriter(file))){
bw.write(score);
bw.write(name);
} catch (FileNotFoundException e) {
System.out.println("File is not found");;
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}