StreamWriter position to line number 9
Group,
I'm testing a small program that can read & write to an rtf file. Examples I have found work fine, although I have two questions:
1)If I need to ALWAYS write to line number 9 of an existing RTF file, do I need to "read" 9 times or can I immediately position myself to line number 9. I have found character manipulation but can't seem to find what I need with positioning to a particular line number.
2)BOLD text: I have found examples where I should be able to format my text, such as
MyFile.WriteLine "\b"
MyFile.WriteLine Text
MyFile.WriteLine "\b0"
but when doing this, it does not "bold" my text, but actually prints the text exactly as shown. I'm looking for information/links that I can "bold" "Italicize" text.
Code is written in VS2005.
Thanks
Mary1100
Re: StreamWriter position to line number 9
Load the rtf file into a RichTextBox control and do the formatting using the control's methods.