Remove file name prompt when reading from file
This commit is contained in:
parent
6f03c5ada1
commit
c1237e1f67
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue