I have looked to find an answer for this question, but I couldn't find anything that had exactly what I wanted, so I decided to ask here!
I am making a Java game. I am trying to save information locally to the game user, in something like a folder in their Application Support or Documents or whatever (kind of like Minecraft). For example, I am trying to save information like where they left off, and if this is their first time playing, and all that stuff. I was wondering how to create a folder somewhere on that person's computer, and then save a file in it. Is it different for PC and Mac users? How would I go about doing this? How would I save the file on the user's computer?
Also, what is a good file to read/write to save game data? I've used YAML before (I am a Minecraft Bukkit Developer), but I know about XML (I haven't used it before, though). So I just wanted to know, on top of the question above about saving, what file to USE AND HOW for Java.
Please help.