2011-05-10 83 views
0

我有一个原始文件夹中的文本文件,现在我想将它保存在Android平台的内部存储的某个地方,以便它是不可访问的。保存原始文件到内部存储

请如果有人能帮助我。提前Thanx。

+0

请你在标题中添加更多的信息?两条线是不够的... – WarrenFaith 2011-05-10 12:53:03

回答

-2

像这样的东西应该工作

InputStream is = new FileInputStream("path_to_your_file"); 
FileOutputStream fos = openFileOutput("your_file", Context.MODE_PRIVATE); 
// read from InputStream and write ot OutputStream 

更多信息有关InternalStorage