Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

BufferedInputStream

try {
    // create a reader
    FileInputStream fis = new FileInputStream(new File("input.dat"));
    BufferedInputStream reader = new BufferedInputStream(fis);

    // read one byte at a time
    int ch;
    while ((ch = reader.read()) != -1) {
        System.out.print((char) ch);
    }

    // close the reader
    reader.close();

} catch (IOException ex) {
    ex.printStackTrace();
}
Comment

PREVIOUS NEXT
Code Example
Java :: add a value to a list java in java hashmap 
Java :: mock ParameterizedTypeReference 
Java :: quarkus maven skip test 
Java :: java list get first element 
Java :: java_remove last char 
Java :: stringbuilder insert beginning 
Java :: Cannot find a class with the main method. 
Java :: centos 8 install java 16 
Java :: java vs python 
Java :: print statement in java 
Java :: $JAVA_HOME ENV 
Java :: android access main toolbar in fragment 
Java :: haxe interface 
Java :: java localdate subtract two dates 
Java :: set jcombobox index java 
Java :: float.compare java 
Java :: local date to date java 
Java :: abstract code in java 
Java :: create hashmap in java 
Java :: power-hungry foobar solution in java 
Java :: how to output a list in java 
Java :: java run jar with args 
Java :: java find duplicate element in list 
Java :: align button to the left in JPanel 
Java :: Implementation of LinkedHashMap Class in Java map 
Java :: java generic type method 
Java :: startactivity not working in android adapter 
Java :: quebra de linha java 
Java :: bulkwrite mongodb array of objects 
Java :: compress a directory in java 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =