title: DELPHI XE5 Android - SAVE / LOAD file from SDCard
body: <p>I am using Delphi XE5 for Android developing.</p>
  
  <p>I like to save and load TStringList to text file on SDCard.
  When I save TStringList to file all is OK. After saving I can call LoadFromFile and file is loaded.</p>
  
  <p><strong>The problem is when I close the application and open it again. File does not exist?</strong>
  This is file location <code>FileName := '/data/data/[com.MY.APP]/files/File.txt'</code></p>
  
  <p>Under application user permissions = <strong>Write external stoage : True</strong></p>
  
  <p><strong>Do I need to save the file to another folder?</strong></p>
  
  <p>Thx for help.</p>
  
  <p>This in my code and settings.</p>
  
  <pre><code>procedure LOAD;
  var
    TextFile: TStringList;
    FileName: string;
  begin
       TextFile := TStringList.Create;
      try
        FileName := Format('%s/File.txt', [GetHomePath]);
        if FileExists(FileName) then
        begin
          TextFile.LoadFromFile(FileName);
          Memo1.Lines.Text := TextFile.Text
        end
        else
          ShowMessage('File not exists!');
      finally
        TextFile.Free;
      end;     
  
  end;
  
  procedure SAVE;
  var
    TextFile: TStringList;
    FileName: string;
  begin   
      TextFile := TStringList.Create;
      try
        FileName := Format('%s/File.txt', [GetHomePath]);
        TextFile.Text := Memo1.Lines.Text;
        TextFile.SaveToFile(FileName);
      finally
        TextFile.Free;
      end;     
  end;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LI47T.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/05lIi.png" alt="enter image description here"></p>