I currently have a program that writes and reads XML filed and saves them somewhere the user can’t see immediately using Application.persistentDataPath. But now, when the game’s closed, I want the XML file, or better, a file containing a formatted version of the XML file to be saved on the desktop so it can be read by the user. Any suggestions on what to do or how to approach this?
use this:
string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);