have a look at my code:
C#
public void BuildHTML(string htmlfilenaddress, string htmlstring)
{
try
{
using (FileStream fs = new FileStream(htmlfilenaddress, FileMode.Create))
{
using (StreamWriter writer = new StreamWriter(fs, Encoding.UTF8))
{
writer.Write(htmlstringbegin + htmlstring + htmlstringend);
}
}
}
catch (NotImplementedException)
{
throw new NotImplementedException();
}
}
I want the exception to be caught when the writer writes null value.
Thank you.
VulpesRank #55 · 29.2K reputationPosted Apr 23, 2013, 2:40 AM EDT