Anupam Mishra Total Post:135 Points:949 Posted by Anupam Mishra January-21-2016 6:48 AM C# .NET C# 1 Reply(s) 776 View(s) Ratings: Rate this: Hi Everyone, I want to access all temporary files in my system with its size. Please give me a solution. Thank You.
Shiva Shukla Post:13 Points:91 Re: how to programatically check temporary files in system using c# Posted on 3 years ago To 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); } }
Post:13
Points:91Re: how to programatically check temporary files in system using c#
To read from the temp file