just fix it like this
string deskPath = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
bool fileExists = File.Exists(DesktopBounds + "/reciept.txt");
using (StreamWriter sw = new StreamWriter(Path.Combine(deskPath,"reciept.txt")))
{
sw.WriteLine("asdasdasd");
}