c# how to change font size/style when using StreamWriter
StreamWriter SW;
SW = File.CreateText("c:\\abc.odt");
SW.WriteLine("fir开发者_如何学Gostline\nTsecondline\nThird line");
When I check the file in the c: directory , It opens up with default font size/style .. any idea how to change them
You are saving a text file, so there is no font information on it. If you want to save rich text use a proper file format, as for example rtf. Obviously to save such a file a plain stream writer is no more enought, so you probably have to explain better what you want to do.
精彩评论