Hello,
I am using the following code in COnsole C# application:
TextWriter tw = new StreamWriter(Lo gFileName);
while ((inputLine = _streamReader.R eadLine()) != null)
{
lineNumber++;
if (lineNumber ReadLines)
{
tw.WriteLine(in putLine);
}
}
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!
*** Sent via Developersdex http://www.developersdex.com ***
Comment