I am using this to get each line from a text file using Java Class.
String line = null;
try{
BufferedReader Br=new BufferedReader(new FileReader("/data/local/fileconfig.txt"));
while ((line = Br.readLine()) != null)
{
Log.d("hi", "LINE : " + line);
}
} catch (Throwable throwable) { }
The fileconfig.txt has 2 lines like this -
############################################
packagename:com.hello
So my Log is like -
LINE : ############################################
LINE : packagename:com.hello
My question is now I am able to get this line info packagename:com.hello. I just want to extract com.hello out of this line. What is the logic I can use in my while loop?