I have a text file with the following URLs:
http://www.google.com.uy
http://www.google.com.es
http://www.google.com.nz
I need to read the second line of this TXT, the second URL showed there.
I've been researching and I didn't find what I exactly need, because, although I know I have to use the BufferedReader
class, I don't know how to specify the "line" I want to read.
This is what I wrote so far:
String fileread = "chlist\\GATHER.txt";
try {
BufferedReader br = new BufferedReader(new FileReader(fileread));
String gatherText = br.readLine();
br.close();
} catch (IOException ioe) {}