I'm willing to save a file in the user's "My Documents" folder.
I tried getting the location like this :
System.getenv("USERPROFILE") + "\My Documents"
Then, I realized this wouldn't work in a system where the language is set to another language, french for example.
Is there another way of getting the "My Documents" folder efficiently?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…