Hi Everyone, I want to access all temporary files in my system with its size. Please give me a solution. Thank You.
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); } }