Get temporary path name in CSharp

Description

The following code shows how to get temporary path name.

Example


using System;/*from  w w w  .  j  a v a 2s. com*/
using System.Diagnostics;
using System.IO;
class TestPathApp {
    static void Main(string[] args) {
        Console.WriteLine(Path.GetTempPath());

    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    IO »




File Attribute
File Security
Directory Attribute
Directory Recursive
Binary File
Text Field
Buffered IO
Create Copy Delete Move
CSV
Drive
File System Watcher
Isolated Storage
MemoryStream
Serialize
Zip