public static string FileName = "test.txt";
public static void Main()
var file = FileName.ToFileInfo();
Console.WriteLine("File Name: {0}", file.FullName);
file.Rename("newtest.txt");
Console.WriteLine("New file Name: {0}", file.FullName);
private static void SaveFile()
<h1>This is <b>bold</b> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
<h2>This is <i>italic</i> heading</h2>