Loading text from a .txt file to display?

Hi there, thanks for stopping by!

So im trying to load the text from a txt file into a variable so i can place this variable into a label and display it in the GUI. As an example it would be the help file text that i want to put into a GUI.Window.

iv been floundering around on this for way too long now so i cam here for some help. If anyone has a second id really appriciate it!

here is what i have been trying… but i cant seem to get it working.

Lessons01 is the name of my txt file. Its inside my assets folder.

var lesson01Text = TextAsset;

function windowLessons (windowID : int){
     lesson01Text = Resources.Load("Lessons01"); 
     GUI.Label (Rect ( 20, 40, 650, 650), "Show UP NOWWW --->" +(lesson01Text));
}

What am i missing here?

var lesson01Text : TextAsset;

function WindowLessons (windowID : int){ 
     GUI.Label (Rect ( 20, 40, 650, 650), "Show UP NOWWW --->" + lesson01Text.text); 
}

No need for Resources.Load when you’re assigning it in the inspector.

–Eric

Ah thank you soo much!!! So many little details, looking through the other 40 posts similar to this but not exactly the same was driving me crazy. How do you guys learn all the specifics of this stuff. Ahh a sigh of relief, first one for the day.