Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Entrada.java
- // Lee del fichero binario un caracter
- public char Leer() throws EOFException{
- char cas = ' ';
- try{
- cas = entrada.readChar();
- }catch(IOException e) {System.err.println(e);}
- return cas;
- }
- // Salida.java
- // Escribe en el fichero binario el caracter que se le pasa por parametro
- public void EscribirCasilla(char casilla){
- if(casilla!=' '){
- try{
- salida.writeChar(casilla);
- }catch(IOException e) {System.err.println(e);}
- }
- }
Add Comment
Please, Sign In to add comment