几个小例子告诉你,一行Python代码能做什么
发布网友
发布时间:2022-05-07 20:08
我来回答
共1个回答
热心网友
时间:2022-04-18 16:49
public void save(){
try {
FileOutputStream outStream=this.openFileOutput("a.txt",Context.MODE_WORLD_READABLE);
outStream.write(text.getText().toString().getBytes());
outStream.close();
Toast.makeText(MyActivity.this,"Saved",Toast.LENGTH_LONG).show();
} catch (FileNotFoundException e) {
return;
}