I am a beginner in SAF. What I'm trying to do is super simple to save a config. Let's say the file is .conf. 

I copy .conf to conf.txt and I save it on Drive.

Here is my code:

```
            tools.deleteFile(dst);   // delete conf.txt if it exists
            int res = tools.copyFile(src,dst); // copy .conf to conf.txt
            if(res == -1) return;

            tools.viewFile(dst);  
// verify in Log info that the content of cnf.txt is correct

            Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);

            intent.addCategory(Intent.CATEGORY_OPENABLE);
            intent.setType("text/plain");
            intent.putExtra(Intent.EXTRA_TITLE, dst);
            startActivity(intent);

```

I do a save in Drive. The file appears on my pc but when I open it, it's empty.

When I do the inverse: ACTION\_OPEN\_DOCUMENT

```
   public void onActivityResult(int requestCode, int resultCode,
                                 Intent resultData) {
    Uri uri;

    if (resultCode == Activity.RESULT_OK){
         if (requestCode == 30){
            if (resultData != null) {
                uri = resultData.getData();
                try {
                    String content =
                            readFile(uri);
                } catch (IOException e) {
                    e.printStackTrace();
                }

```

The function readFile opens the file and stops while reading because there is no data. 

What did I do wrong?