title: How to put text file content to dictionary c# unity
body: <p>I have a few text files with phrases in them(answers).In a text file for example I have 150 phrases.I am working on a fishing game.After you catch a fish, a reply appears(which comes from the text file) and appears in the middle of the screen.I thought that if I put my text file in the Assets folder then everything will be fine.But no!!! :( </p>
  
  <p>Here is my code where I return my line(answer):</p>
  
  <pre><code>public string filename333 = "try.txt";
  
  public string getRandomMessagefromRechin()
  {
  
      var sr = new StreamReader(Application.dataPath + "/" + fileName1);
      var fileContents = sr.ReadToEnd();
      sr.Close();
      var mydata = fileContents.Split("\n"[0]);
      var myrandom = Random.Range(1, mydata.Length);
      return mydata[myrandom];
  
  }
  </code></pre>
  
  <p>On PC , when i hit PLAY button , it s working fine,here is an image:</p>
  
  <p><a href="https://i.stack.imgur.com/2XxHS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2XxHS.png" alt="game"></a></p>
  
  <p>Sorry for the text , it's a random line from my text file.The problem is after I build the project on a tablet or android phone. The answers from my text files are not showing on my screen. 
  I want to try another method with dictionaries or with a list of strings, but how can I put 150+ lines on a list from the text in a file?</p>
  
  <p>I have another questions:</p>
  
  <p>1.Why isn't my method working?(I suppose that my text files aren't being built, or aren't put in the right folder of the project)</p>
  
  <p>2.Is another method which I can try to load my lines(answers)?</p>
  
  <p>3.As this problem, I have another scene.After you catch a gold fish, a transition appears(screen go black, then screen goes back to normal) and a wheel of luck appears when u can play, like a roulette.This scene isn't loading on my android devices. Why?</p>