title: How to open a file in raw folder in Android
body: <p>I am usin MultipartEntity and I am trying to refer to the file in the raw folder. Here is the code:</p>
  
  <pre><code>MultipartEntity reqEntity = new MultipartEntity();
  reqEntity.addPart(new FormBodyPart("file", new FileBody(new File("test.txt"))));
  </code></pre>
  
  <p>The test.txt file is in my res/raw folder. When I execute the code I get the following exception : FileNotFoundException: /test.txt: open failed: ENOENT (No such file or directory)</p>
  
  <p>Can anyone help me with this?</p>