How can you rename a file in C#?

 Posted by Ddd on 3/6/2011 | Category: C# Interview questions | Views: 8287 | Points: 40


if there is a filename known as aa.txt in C drive and we want to change its name

to bb.txt.

Use this code snippet:


You must include the namespace System.IO

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response