Permite manejar archivos.
- Código
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
//crear Scanner in; try{ in = new Scanner(new File("archivo.txt")); }catch (FileNotFoundException e1){ //codigo... } //Leer datos try{ String s=in.nextLine(); }catch (NoSuchElementException e2){ }catch (IllegalStateException e3){ }
Links:
0.02
No hay comentarios.:
Publicar un comentario