Hi,
I am trying to write some text to this text document. Even the the program successfully debugs, i do not see a blank document on the file that I want to make changes on.
Here is the code:
using System;
using System.IO;
class CheckStream
{
public static void Main()
{
string fName = "report info.txt";
StreamWriter inStream;
try{
inStream = new StreamWriter(fName);
inStream.WriteLine("1234567");
}
catch(Exception e)
{
Console.WriteLine("What!! {0}", e);
}
}
}
I am trying to write some text to this text document. Even the the program successfully debugs, i do not see a blank document on the file that I want to make changes on.
Here is the code:
using System;
using System.IO;
class CheckStream
{
public static void Main()
{
string fName = "report info.txt";
StreamWriter inStream;
try{
inStream = new StreamWriter(fName);
inStream.WriteLine("1234567");
}
catch(Exception e)
{
Console.WriteLine("What!! {0}", e);
}
}
}