I am trying to write a method that makes a \"log.txt file\" if one does not already exist and then writes to the file. The problem that I am encountering is every time I cal
BufferedWriter login = new BufferedWriter(new FileWriter("login.txt"));
is an example if you want to create a file in one line.