how to programatically check temporary files in system using c#
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Shiva Shukla
24-Jan-2016To read from the temp file
private static void ReadTmpFile(string tmpFile) { try { // Read from the temp file. StreamReader myReader = File.OpenText(tmpFile); Console.WriteLine("TEMP file contents: " + myReader.ReadToEnd()); myReader.Close(); } catch (Exception ex) { Console.WriteLine("Error reading TEMP file: " + ex.Message); } }