Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Numerics;
- namespace ConsoleApp61
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] input = Console.ReadLine().Split("\\");
- string text = input[3];
- string[] split = text.Split('.');
- string fileName = split[0];
- string template = split[1];
- Console.WriteLine($"File name: {fileName}");
- Console.WriteLine($"File extension: {template}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement