Question: Here is my code:

```
public boolean readFromFileBooking()
    {
       boolean isFileBooking = true;
        try 
        {
            BufferedReader reader = new BufferedReader(new FileReader("bookings.txt"));   
            String data = reader.readLine();   
            if (data == null)   
            {
                System.out.println("No Bookings Have Been Made . . . .");
            }    
 data = reader.readLine();  
 reader.close();            
}

```

Here is the sequence: 

1. Write array into a text file
2. Stop/exit from the system
3. On restart load the previous array in the text file so it can be used again.

The problem is whenever I start a new system, the text file will be overwritten by a new array. Actually I want the new array become a new list in `ArrayList`.

Can you guys share to me how to load the previous data in a new system? How to load/copy the previous data in text file?

Answer: 
I have never written an email sending function in Android. However, the alternative way instead of sending the email through your app is to fire the intent to other email app. 

```
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

String receiver = "someone@somewhere.com";
String subject  = "your email subject";
String body     = "your email body";

emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, receiver);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, body);

startActivity(emailIntent);

```

Also, don't forget adding permission in your AndroidManifest.
```
I used it in my app. here is the code.

When multiple Application to send email handling it to others applications

startActivity(Intent.createChooser(emailIntent, "Send your email in:"));  

Supplying Message Content

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);  

String aEmailList[] = { "user@gmail.com","user2@gmail.com" };  
String aEmailCCList[] = { "user3@gmail.com","user4@gmail.com"};  
String aEmailBCCList[] = { "user5@gmail.com" };  

emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);  
emailIntent.putExtra(android.content.Intent.EXTRA_CC, aEmailCCList);  
emailIntent.putExtra(android.content.Intent.EXTRA_BCC, aEmailBCCList);  

emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My subject");  

emailIntent.setType("plain/text");  
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My message body.");  

startActivity(emailIntent);  

```