Set text to line in .txt file depending on player skill level

Hello UA! How exactly would I go about setting a text gameobject’s text component to a line of text in a .txt file depending on the player level (Toejam and Earl for the genesis anyone?) I have a .txt file that goes along the lines of:

Level 1-3
Newbie

Level 4-7
Doofus

In pseudocode what I would do would be something like this:

if playerLevel > 0 && playerLevel < 3 {
   text.Text = textfile.line1;
}

but how would this be accomplished in actual code? :stuck_out_tongue:
Thanks all.

EDIT- Thanks GameMaker_ , your latest comment solved the problem. 1 more question however, since it is a comment, how can I mark it at the correct answer?

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class example : MonoBehaviour {
     public Text score;
	// Use this for initialization
	void Start () {
		score.text = "TotalScore" ;
	}