I have an activity where I take the input from edit text and store it in an list.
I also store in list the current date.
Then , I press the save button which
The code that deal with your file must be something like this (not compiled):
public void savefunc(){
List myDate = new ArrayList(); //To store the formatted dates
SimpleDateFormat thedate = new SimpleDateFormat("dd/MM/yyyy");
Date d=new Date(); //the current date
String sd = thedate.format(d); // sd contains "16/04/2013", the formatted date
myDate.add(sd);
double thedata=Double.parseDouble(value.getText().toString().trim());
mydata.add(thedata);
...
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));
for (int i=0;i
Hope it helps.