

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C# Program to display temporary file names
<p>The GetTempPath() method in C# displays temporary file names −</p><pre class="result notranslate">Path.GetTempPath();</pre><p>Get the names in a variable and display −</p><pre class="result notranslate">string tempFile = Path.GetTempPath();</pre><p>The following is the code −</p><h2>Example</h2><p><a class="demo" href="http://tpcg.io/imRhrv" rel="nofollow" target="_blank"> Live Demo</a></p><pre class="prettyprint notranslate" style="">using System; using System.IO; class Demo { static void Main() { string tempFile = Path.GetTempPath(); Console.WriteLine(tempFile); } }</pre><h2>Output</h2><pre class="result notranslate">/tmp/</pre>
- Related Questions & Answers
- Program to make file names unique using Python
- Create a temporary file in Java
- How to delete a temporary file in Java?
- How to create a temporary file using PowerShell?
- How to generate secure temporary file name using Python?
- Display weekday names in Java
- Create temporary file in specified directory in Java
- How to create a unique temporary file name using Python?
- Create temporary file with specified extension suffix in Java
- Java Program to list Weekday names
- Display specific table names with MySQL LIKE Operator
- Write a C program to read a data from file and display
- How to display errors in PHP file?
- How to filter the files by file extensions and show the file names in Java?
- How to exclude specific file names using Get-ChildItem in PowerShell?
Advertisements