Answered by:
Is there an equivalent to PHP's tempnam() function?

Question
-
Hi!
Is there an equivalent in C# to PHP's tempnam() function?
Thanks in advance for your help.Monday, June 15, 2009 5:15 PM
Answers
-
Path.GetTempFileName()
David Morton - http://blog.davemorton.net/ - @davidmmorton - ForumsBrowser, a WPF Forums Client- Proposed as answer by Ajith R Nair Monday, June 15, 2009 5:40 PM
- Marked as answer by wwelchj Monday, June 15, 2009 7:18 PM
Monday, June 15, 2009 5:22 PMModerator -
HiMr David is right and you can use one more method.string value = Environment.GetEnvironmentVariable("TEMP");
-- Thanks Ajith R- Proposed as answer by Ajith R Nair Monday, June 15, 2009 5:40 PM
- Marked as answer by wwelchj Monday, June 15, 2009 7:18 PM
Monday, June 15, 2009 5:38 PM
All replies
-
Path.GetTempFileName()
David Morton - http://blog.davemorton.net/ - @davidmmorton - ForumsBrowser, a WPF Forums Client- Proposed as answer by Ajith R Nair Monday, June 15, 2009 5:40 PM
- Marked as answer by wwelchj Monday, June 15, 2009 7:18 PM
Monday, June 15, 2009 5:22 PMModerator -
HiMr David is right and you can use one more method.string value = Environment.GetEnvironmentVariable("TEMP");
-- Thanks Ajith R- Proposed as answer by Ajith R Nair Monday, June 15, 2009 5:40 PM
- Marked as answer by wwelchj Monday, June 15, 2009 7:18 PM
Monday, June 15, 2009 5:38 PM -
Thanks!Monday, June 15, 2009 7:19 PM