I have write the following code to write a file-
FileOutputStream fos = context.openFileOutput("MyFile",Context.MODE_PRIVATE);
ObjectOutputStream os = new ObjectOutputStream(fos);
//Saving my list
os.writeObject(EmailStackClass.list);
os.close();
how can i identify if the file is already exist ? Because if the file is created previously, then i have to append my data on the previous file. Please help me...