title: Unity - File not writing on Android?
body: <p>I've been trying to get this to work for the last couple of hours and it's driving me nuts.</p>
  
  <p>I have a method set up to save out data, which works flawlessly on PC, however, on Android it will not write the file. Here's my code:</p>
  
  <pre><code> public void Save()
  {
      string data = buildJson();
  
      File.WriteAllText(Application.persistentDataPath + "/playerSave.json", data);
      Debug.Log("File Saved: " + Application.persistentDataPath + "/playerSave.json");
  }
  </code></pre>
  
  <p>Not sure why it's not working. From what I can tell reading other threads, using the Application.persistantDataPath is the correct thing to do.</p>
  
  <p>Any help?</p>