so let's say I ask the user to specify what he wants to call a new file
System.out.println("What do you want to call the file?");
String outputFile = keyboard.nextLine();
now to write the file I would do:
PrintWriter outputFile = new PrintWriter(fileName);
My question are:
I know by default it saves to the local folder. How do I make it so that it will save it to the users desktop?
How do I automatically append .txt to his given file name so he doesn't have to do it?