Returns a uniquely named zero-byte temporary file on disk and returns the full path to that file.
[Visual Basic]
Public Shared Function GetTempFileName() As String
[C#]
public static string GetTempFileName();
[C++]
public: static String* GetTempFileName();
[JScript]
public static function GetTempFileName() : String;
Return Value
A String containing the name of the temporary file.
Remarks
The following table lists examples of other typical or related I/O tasks.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
Path Class | Path Members | System.IO Namespace | Working with I/O | Reading Text from a File | Writing Text to a File