Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Rename - Right

Reply
Thread Tools

Rename - Right

 
 
Thom Little
Guest
Posts: n/a
 
      08-03-2006
What a curious use of the word rename ...

It is stated that
string strA= Path.GetTempFileName();
creates a temporary file name in the temp directory and ...
Path.ChangeExtension( strA, "xxx" );
.... renames it.

What actually happens is that ...
string strA= Path.GetTempFileName();
.... creates a unique temporary file of length "0" and ...
Path.ChangeExtension( strA, "xxx" );
.... makes a copy of the file changing the extension to ".xxx".

You will start noticing this by the accumulation of zero-length "files"in
the temporary directory each having a length of zero.
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Menu Items is not right aligned with Right to Left documen =?Utf-8?B?QmlzaG95?= ASP .Net 0 12-28-2006 11:39 AM
Right-Click With Mouse and Toolba Buttonsr Don't Work Right Bigfoot It Is Computer Support 0 10-30-2006 06:08 PM
Tool to enable Right click on pages where Right click is disabled tsteinke@gmail.com Computer Support 4 08-28-2005 11:53 PM
Tool to right click image in windows explorer and rotate image right or left 90 degrees siliconpi Digital Photography 2 11-29-2004 12:56 PM
pass the right form input to the right control Tom ASP .Net 0 12-11-2003 03:07 AM



Advertisments