// Use this for initialization void Start() { m_Text = GetComponent <Text>(); m_Text.text = ""; StreamReader OpenFile; if (m_Bool) { OpenFile = new StreamReader("Test.txt"); } else { OpenFile = new StreamReader("Shrug.txt"); } string line; while ((line = OpenFile.ReadLine()) != null) { m_Text.text += line + "\n"; } OpenFile.Close(); }