YTU OJ 3444 C# 问题 C: C#提取文件名
sing System;
namespace text1
{
class text1
{
static void Main(string[] args)
{
int Position;
int Position1;
string str = Console.ReadLine();
Position = str.LastIndexOf("MyFile.TXT");
if (Position != -1)
Console.WriteLine("MyFile.TXT");
if (Position == -1)
{
Console.WriteLine("MyFile1.TXT");
}
}
}
}