1

Android read/write a few string

view story
linux-howto

http://stackoverflow.com – i want to read/write a few string into android file So i write information from tree EditTexts public void save(Person p) { try { FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); fos.write(p.getName().getBytes()); fos.write(p.getSurname().getBytes()); fos.write(p.getAge().getBytes()); fos.close(); Toast toast = Toast.makeText(getApplicationContext(), "Info was saved!", Toast.LENGTH_SHORT); toast.show(); } catch (FileNotFoundException e){ e.printStackTrace(); Toast toas (HowTos)