title: Unity: read and write to txt file after build
body: <p>I have written two classes, one that writes to a txt file and one that reads from a text file. It works great on the editor but when I build the game for android and run it on android it does not work. The file cant be found. I am wondering how can I read and write to this file after the build. Here is the class I use to load the txt.</p>
  <pre><code>public class PlayerPositioner : MonoBehaviour
  {
  
  public GameObject player;
  private float posx, posy;
  
  void Start()
  {
      string path = &quot;Assets/Resources/Player.txt&quot;;
  
      //Read the text from directly from the test.txt file
      StreamReader reader = new StreamReader(path);
      string[] lines = System.IO.File.ReadAllLines(path);
  
      player.transform.position = new Vector2(float.Parse(lines[0]), float.Parse(lines[1]));
  
      reader.Close();
  }
  }
  </code></pre>