File Path Problem
File.WriteAllText("config.dat", "SomeArbitraryStringCharacters");
It wants to create the config.dat file in the same directory I saved the XML file into, even though they're totally unrelated! Whats up with that? Is there some secret way to remove this file path from the underlying stream or something?
This is the code I use to create the XML file:
private void XMLSaveFileDialog_FileOk(object sender, EventArgs e)
{
try
{
XMLFilePath = XMLSaveFileDialog.FileName;
File.Create(XMLFilePath);
}
catch (Exception error)
{
MessageBox.Show("Error: " + Convert.ToString(error.Message), "Notice", MessageBoxButtons.OK);
}
}
Such a bizarre problem and I cant seem to find anyway to get rid of it.

