![]() |
Creating Temporary File in .Net
Temp files are generally used for temporary storage and data manipulation. This is often necessary for storing user data, user preferences, session information, application cache, and many other types of information.
In order to get the name of the file that you can use as a temp file in VB.NET, I suggest using the GetTempFileName method of the Path class. While there are multiple approaches to creating a temp file, it's really helpful to use the System.IO.Path because it returns a unique file name in the current user's temporary directory; you can use that file name to create a file for storing temporary information. Note that calling this method multiple times will result in getting a different file name each time even if you don't use that name to create a file. This behavior prevents name collisions between multiple applications. Snippet A Code: VB.Net
|
Re: Creating Temporary File in .Net
Wow great example thanks for posting here,,,,,,,,,,
|
Re: Creating Temporary File in .Net
Hi dude, That's really good to see the example like this.
|
| All times are GMT +5.5. The time now is 19:21. |