RTF files input

burni
02-28-2004, 11:09 AM
Hi im new to VB.net and VB

Can someone please help, all i want to do is read in a value from a.rtf file, either into a textBox or a label. The .rtf file only has one word in it.

The problem is that all that is displayed is the end of the .rtf code
example

\par }}}

instead of the word in the file

I know normaly i would use:

FileOpen(1, Filename, OpenMode.Input)

Do While Not EOF(1)
Text = LineInput(1)
Fname.Text = Text
Loop

To read in all the text from a .txt file, but i cant figure out how to read in the text from an .rtf file

any help would be greatly appreciated

burni

wildfire1982
03-02-2004, 11:12 AM
Is it only getting the last line? if it is, try this.

Do While Not EOF(1)
Text = LineInput(1)
Fname.Text = Fname.Text & Text
Loop

Or is it another problem?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum