FileStream fs = File.OpenRead(filePath + "\\a.txt");
byte[] inputeByteArray = new byte[fs.Length];
  fs.Read(inputeByteArray, 0, (int)fs.Length);
fs = File.OpenWrite(filePath+"\\b.abc");
fs.Close();
System.IO.File.Delete(filePath+ "\\a.txt");