Hi @bharadwaj.vuppalapati
Try this
Path.GetFileNameWithoutExtension(CurrentFile.ToString)+".txt"
Regards,