安卓基础 将文本文件保存到手机中 public class FileService{ public static boolean saveUserInfo Context context String edit title String edit content { try{ File file new File context getCacheDir edit title+" txt" ; FileOutputStream fos; fos new FileOutputStream file ; fos write edi