Guest User

Untitled

a guest
Jul 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import java.io.*;
  2. public class B{
  3. public static void main(String[] args)throws IOException{
  4. try{FileInputStream leser= new FileInputStream("a.dat");
  5. byte[] puffer = new byte[1];
  6. for(int i=0; (leser.available()!=1);i++){
  7. System.out.print(leser.read());
  8. }
  9.  
  10. leser.close();
  11. } catch(FileNotFoundException e){
  12. System.out.println("Keine Datei gefunden");
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment