using System;
using System.IO;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
string file = args[0];
string text = File.ReadAllText(file);
string[] array = text.Split(' ');
foreach (string str in array)
{
Console.WriteLine(str);
}
}
}
}
example.exe text.txt
Comments
Leave a comment