C
csharpula csharp
Hello,
I am using the following code in COnsole C# application:
TextWriter tw = new StreamWriter(LogFileName);
while ((inputLine = _streamReader.ReadLine()) != null)
{
lineNumber++;
if (lineNumber > ReadLines)
{
tw.WriteLine(inputLine);
}
}
The problem is that the output is written in file and in console and I
want it to be written in file only. How can I avoid it be written to the
console?
Thank u!
I am using the following code in COnsole C# application:
TextWriter tw = new StreamWriter(LogFileName);
while ((inputLine = _streamReader.ReadLine()) != null)
{
lineNumber++;
if (lineNumber > ReadLines)
{
tw.WriteLine(inputLine);
}
}
The problem is that the output is written in file and in console and I
want it to be written in file only. How can I avoid it be written to the
console?
Thank u!