Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String leArquivo(String nome) {
- String linha = "";
- StringBuilder conteudoArquivo = new StringBuilder();
- try {
- FileReader arq = new FileReader(nome);
- BufferedReader lerArq = new BufferedReader(arq);
- while (linha != null) {
- linha = lerArq.readLine();
- conteudoArquivo.append(linha);
- }
- arq.close();
- } catch (IOException e) {
- UtExceptionMaestro.logarException(Thread.currentThread(), e, LevelLog.ERROR);
- }
- return conteudoArquivo.toString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement