Java tutorial
//package com.java2s; //License from project: Apache License import java.io.FileOutputStream; public class Main { public static void writeFileSdcard(String filePath, String content, boolean isAppend) { try { FileOutputStream fout = new FileOutputStream(filePath, isAppend); byte[] bytes = content.getBytes(); fout.write(bytes); fout.close(); } catch (Exception e) { e.printStackTrace(); } } }