Hi!!I just want to ask if it possible to put textfile on a canvas text?If possible how?Help me please!!!

public Text textfileholder;
void textfile(string text){
TextAsset ta = (TextAsset)Resources.Load (text);
textfileholder = ta.text;
}

using UnityEngine.UI;//Top

ta=Resources.Load(“Path.txt”);

textfileholder.text=ta.text;//textfileholder!=null