输出文件

来源:互联网 发布:mac系统密码忘记 编辑:程序博客网 时间:2024/04/28 10:17

private static PrintStream output = null;

File sdCardPath = Environment.getExternalStorageDirectory();

if (sdCardPath != null) {
String LOG_PATH = sdCardPath + File.separator
+ "BluetoothPhoneApk.txt";
File file = new File(LOG_PATH);
if (file != null) {
output = new PrintStream(file);
}

}


if (output != null) {
output.close();
}

0 0
原创粉丝点击