title: Android not creating/appending a.txt file
body: <p>This is what doing to read from a .txt file in my android activity. Though the app runs, I find that no file is created/appended. In logcat following line is shown,</p>
  
  <pre><code>java.io.FileNotFoundException: /home/Desktop/RiaC_android/Test/app/src/main/assets/SampleFile.txt: open failed: ENOENT (No such file or directory)
  </code></pre>
  
  <p>The code I'm currently using, though I have tried before,
      BufferedWriter out = new BufferedWriter(
                      new FileWriter("test_File.txt"));
  however, the result remains same.</p>
  
  <pre><code>import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  import android.view.Menu;
  import android.widget.TextView;
  import java.io.File;
  import java.io.FileWriter;
  import java.io.IOException;
  
  public class MainActivity extends ActionBarActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  
  TextView tv = (TextView)findViewById(R.id.textView);
  File testFile = new File("/home/Desktop/RiaC_android/Test/app/src/main/assets", "SampleFile.txt");
  FileWriter writer = null;
  try {
  writer = new FileWriter(testFile, true);
  writer.write("Hello File!!");
  writer.close();
  } catch (IOException e) {
          e.printStackTrace();
  }
  if (testFile.exists())
  tv.setText("File created!!");
  }
  
  public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
         getMenuInflater().inflate(R.menu.menu_main, menu);
         return true;
       }
  }
  </code></pre>
  
  <p>Any suggestions about what I'm doing wrong?</p>