সি শার্পে GetTempPath() মেথডটি অস্থায়ী ফাইল নাম প্রদর্শন করে −
Path.GetTempPath();
নামগুলো একটি ভেরিয়েবলে পান এবং প্রদর্শন করুন −
string tempFile = Path.GetTempPath();
কোডটি নিচে দেওয়া হলো −
উদাহরণ
using System;
using System.IO;
class Demo {
static void Main() {
string tempFile = Path.GetTempPath();
Console.WriteLine(tempFile);
}
}
আউটপুট
/tmp/