Есть ли лучшие способы прочитать весь HTML -файл в одну строковую переменную, чем: < /p>
String content = "";
try {
BufferedReader in = new BufferedReader(new FileReader("mypage.html"));
String str;
while ((str = in.readLine()) != null) {
content +=str;
}
in.close();
} catch (IOException e) {
}
Подробнее здесь: https://stackoverflow.com/questions/120 ... -to-string