Remove file name prompt when reading from file

This commit is contained in:
Jaculabilis 2022-12-31 13:01:57 -08:00
parent cdef096477
commit 77347734c4
1 changed files with 1 additions and 2 deletions

View File

@ -48,11 +48,10 @@ internal class Program
{ {
// Read all lines from the input file. // Read all lines from the input file.
var fullPath = Path.GetFullPath(inputFile); var fullPath = Path.GetFullPath(inputFile);
var fileName = Path.GetFileName(fullPath);
foreach (string line in File.ReadLines(fullPath)) foreach (string line in File.ReadLines(fullPath))
{ {
var trimmed = line.Trim(); var trimmed = line.Trim();
Console.WriteLine($"{fileName}> {trimmed.TrimEnd()}"); Console.WriteLine($"{trimmed}");
yield return trimmed; yield return trimmed;
} }
// Don't return a null, since this will be followed by GetReplInputs. // Don't return a null, since this will be followed by GetReplInputs.