This two methods bellow can help you
EDIT
Here you can read the file from SdCard
public static String getStringFromFile (String filePath) throws Exception {
File dir = Environment.getExternalStorageDirectory();
File fl = new File(dir, "path/to/the/file/inside/the/sdcard.ext");
FileInputStream fin = new FileInputStream(fl);
String ret = convertStreamToString(fin);
//Make sure you close all streams.
fin.close();
return ret;
}
Here you have the strings from the file you get above
public static String convertStreamToString(InputStream is) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line).append("\n");
}
reader.close();
return sb.toString();
}
and add the right permission to your manifest
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
I found in this answer here