引用来的没有亲测 备用吧
FileOutputStream fos = openFileOutput("urls.txt", Context.MODE_PRIVATE);
fos.write("Alex".getBytes());
fos.close();
FileInputStream fis = openFileInput("urls.txt");
int c;
while((c=fis.read())!=-1)
{
k += (char)c;
}
fis.close();
http://developer.android.com/guide/topics/data/data-storage.html#filesInternal