Where are files created using FileOutputStream on Android?

后端 未结 3 1627
太阳男子
太阳男子 2021-01-23 04:27

I\'ve created a file in my code, as shown below

 FileOutputStream fOut = openFileOutput(\"samplefile.txt\", MODE_WORLD_READABLE);
 OutputStreamWriter osw = new O         


        
3条回答
  •  甜味超标
    2021-01-23 05:04

    You can get the address of it be below line Code

     File file = getFileStreamPath("samplefile.txt");
    

    And for print it

    String s  = file.getAbsolutePath();
    

提交回复
热议问题