I have a textarea object filled with styled text (different text colors and font sizes).
Now I want to save it to a file. According to the language reference this can be done by the following lines:
Dim f as FolderItem=GetSaveFolderItem(TextTypes.TextRtf,“TestSaveRTF”)
If f <> nil then
Dim s as TextOutputStream=TextOutputStream.Create(f)
s.Write TextArea1.StyledText.RTFData
s = nil
End if
Next I want to retrieve the text from the file and load it back to my textarea object. But I can’t find example code in the language reference that is able to to this.
Can you help me?
Hank