I know how to read a file with Java using Scanner and File IOException, but the only thing I don\'t know is how to store the text in the files as a
I have found this way of reading strings from files to work best for me
String st, full;
full="";
BufferedReader br = new BufferedReader(new FileReader(URL));
while ((st=br.readLine())!=null) {
full+=st;
}
"full" will be the completed combination of all of the lines. If you want to add a line break between the lines of text you would do
full+=st+"\n";