Underline

If I am writing a line to a text file through a streamwriter. Is there a way to get that line to be underlined in the text file. All I am calling is sw.WriteLine("blah blah blah"). Thanks for the help.
[202 byte] By [Justin5] at [2007-12-16]
# 1

If the file you're writing to is plain text, there is no way to do it because plain text doesn't support any formatting. If you're writing to HTML, simply call:

sw.WriteLine("<u>blah blah blah</u>");

If you're writing to another format (such as RTF), you'll have to investigate the formatting codes for that output format.

JamesKovacs at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified