C# create temporary xml file for download
The following example determines if a file exists. C# Copy. string curFile = @"c:\temp\test.txt"; Console.WriteLine(File.Exists(curFile)? "File exists.": "File does. Replace the file name "c:\temp\SerializationOverview.xml" with the name of the file containing the serialized data. For more information about. Example. Write data to a file: The output If the file does not exist, this function will create one.