Remove file name prompt when reading from file

This commit is contained in:
Jaculabilis 2022-12-31 13:01:57 -08:00 committed by Tim Van Baak
parent 6f03c5ada1
commit c1237e1f67
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.
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.