Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.print("Detector v0.1\nPrograma desenvolvido por Henriq.\n");
- try {
- String arquivo = System.console().readLine("[Digite o local do arquivo (.txt) com as Strings]:");
- Path pathArq = Paths.get(arquivo);
- try {
- System.out.print("\nAnalisando arquivo " + arquivo + ".\nAguarde...");
- byte[] contentsArq = Files.readAllBytes(pathArq);
- System.out.print("\n" + new String(contentsArq));
- } catch (Exception e) {
- System.out.print("Arquivo não encontrado.");
- }
- } catch (Exception e) {
- System.out.print("Scanner: Erro inesperado.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement