I use below code for read txt file and convert to string
After convert, added dot to first line and i cant convert number string to integer
Code :
StringBuilder buf = new StringBuilder();
BufferedReader in = null;
try {
InputStream is = context.getAssets().open("db.txt");
in = new BufferedReader(new InputStreamReader(is));
String str;
while ((str = in.readLine()) != null) {
buf.append(str);
}
in.close();
Log.i("error", "" + buf.toString().trim());
}
catch (IOException e) {
e.printStackTrace();
}
Errorlog :