File input/output: Difference between revisions
Content added Content deleted
(awk) |
|||
Line 197:
=={{header|C sharp|C #}}==
▲ using System;
{
▲ using System.IO;
class Program
▲ namespace FileIO
{
{
{
using (StreamWriter writer = new StreamWriter("output.txt"))
{
while (tr.Peek() != -1)▼
{
tw.WriteLine(line);▼
}
}▼
else▼
}
catch (Exception exception)
}
}
}
}</lang>
There is an easier way in .NET 2.0:
<lang
{
class Program
{
{
{
catch (Exception exception)
}
}
}
}</lang>
=={{header|C++}}==
|