Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class B{
- public static void main(String[] args)throws IOException{
- try{FileInputStream leser= new FileInputStream("a.dat");
- byte[] puffer = new byte[1];
- for(int i=0; (leser.available()!=1);i++){
- System.out.print(leser.read());
- }
- leser.close();
- } catch(FileNotFoundException e){
- System.out.println("Keine Datei gefunden");
- }
- }
- }
Add Comment
Please, Sign In to add comment