B4J Question HTMLEditor - How to save and get file

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings once more.

As I get deeper into B4J, I recognize how powerful it is. I also recognize that I am really a real newbie!

I beg your indulgence in asking these questions, but I cannot find these answers in the documentation or the forum.

I discovered the powerful HTMLEditor Control - WOW! It is nice.

However, I am stumped as to how to save the HTMLEditor.Text to a file and conversely, how to get it.

Any guidance will be appreciated.

Sandy
 

tdocs2

Well-Known Member
Licensed User
Longtime User
Is it as simple as this?

B4X:
    File.WriteString("C:\Dir1\Settings","TestHTML.htm",HTMLEditor1.HtmlText)
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
And how do you read it? It was part of your question which was not answered, so I ask the same one year later :D
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Nevermind I solved it myself, it was easy. To load it back into the HTMLEditor you do :

B4X:
HTMLEditor.HtmlText = File.ReadString("c:\subfolder\","TestHTML.htm")
 
Upvote 0
Top