Live Chat Icon For mobile
Live Chat Icon

How can I to get the path to the system area that holds temporary files?

Platform: ASP.NET| Category: Files

Use System.IO namespace
VB.NET


Dim filePath As String = Path.GetTempPath()
Dim fileName As String = Path.GetTempFileName()
Response.Write((filePath + '
'))
Response.Write(fileName)

C#


string filePath =Path.GetTempPath ();
string fileName   = Path.GetTempFileName();
Response.Write (filePath + '
' );
Response.Write (fileName );

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.