I'm tryin to read a text file into a single
string. I only manage to read the firs line from the file.How can i read every line and make them into one string?
this is the part where i'm tryin to read
the file
File inputFile = new File ("help.txt"
FileReader fis =new FileReader(inputFile);
BufferedReader bis = new BufferedReader(fis);
String test=bis.readLine();
String tmp= "";
String nextLine;
while((nextLine=bis.readLine()!= null)) {
nextLine=nextLine.trim();
string. I only manage to read the firs line from the file.How can i read every line and make them into one string?
this is the part where i'm tryin to read
the file
File inputFile = new File ("help.txt"
FileReader fis =new FileReader(inputFile);
BufferedReader bis = new BufferedReader(fis);
String test=bis.readLine();
String tmp= "";
String nextLine;
while((nextLine=bis.readLine()!= null)) {
nextLine=nextLine.trim();