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 :: declare function in java 
Java :: BodyContentImpl memory leak 
Java :: Design a class ‘Complex ‘with data members for real and imaginary part. Provide default and Parameterized constructors. Write a program to perform arithmetic operations of two complex numbers. 
Java :: align button to the left in JPanel 
Java :: java try-with-resources 
Java :: java.lang.NoClassDefFoundError: 
Java :: array of arrays java 
Java :: How to merge two sorted arrays into a single sorted bigger one? 
Java :: separateur JMenu swing java 
Java :: android check free space programmatically 
Java :: alphabet n vowelin java 
Java :: ClassNotFoundException: org.springframework.ui.freemarker.FreeMarkerConfigurationFactory 
Java :: java mostrar resultados ventana grafica 
Java :: locked screen android studio 
Java :: java convert double to boolean 
Java :: how to install clojure on linux 
Java :: read excel file in java and store into arraylist 
Java :: compress a directory in java 
Java :: how to know if a file is iso-8859-1 encoded in java 
Java :: arraylist remove name in java 
Java :: java array object 
Java :: Send keybord key P in selenium java 
Java :: java zahlen runden auf 1 nachkommastelle 
Java :: initialize an arraylist in java in java 
Java :: Create EntityManager Hibernate 
Java :: GetMapping("/rest/v1/books") in spring rest api 
Java :: HOW TO START ACTIVITY FROM FRAGMENT INSIDE? 
Java :: Create Java Strings using the new keyword 
Java :: regex java 
Java :: Salary example in method in java 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =