From 77347734c495c2897d22f80836a4ec6b14489da5 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Sat, 31 Dec 2022 13:01:57 -0800 Subject: [PATCH] Remove file name prompt when reading from file --- MultiversalDiplomacy/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MultiversalDiplomacy/Program.cs b/MultiversalDiplomacy/Program.cs index f4c8c4a..a6d530f 100644 --- a/MultiversalDiplomacy/Program.cs +++ b/MultiversalDiplomacy/Program.cs @@ -48,11 +48,10 @@ internal class Program { // Read all lines from the input file. var fullPath = Path.GetFullPath(inputFile); - var fileName = Path.GetFileName(fullPath); foreach (string line in File.ReadLines(fullPath)) { var trimmed = line.Trim(); - Console.WriteLine($"{fileName}> {trimmed.TrimEnd()}"); + Console.WriteLine($"{trimmed}"); yield return trimmed; } // Don't return a null, since this will be followed by GetReplInputs.