SoFunction
Updated on 2025-03-08

How to save String as TXT file in SD card on Android

As shown below:

public static void stringTxt(String str){
  try {
   FileWriter fw = new FileWriter("/sdcard/aaa" + "/");//Path in SD card   ();
   (str);
   ();
  } catch (Exception e) {
   ();
  }
 }

The above method of saving String as a TXT file in an SD card on Android is all the content I share with you. I hope you can give you a reference and I hope you can support me more.