So i've been searching on how to read text file in godot and when i try to use the code it printed out a strange text and then i realize that the file is rtf, so i'm searching on how rtf encoding works but i still don't know how to read the file(Rich Text Format) in godot.
I'm sorry because of my bad english.
BTW this is my code to open Rich Text Format file:
var f = File.new()
if f.file_exists("res://content.rtf"):
f.open("res://content.rtf", File.READ)
$content.bbcode_text = f.get_as_text()
f.close()