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 :: org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:876) 
Java :: infinite value total 
Java :: export java command in linux 
Java :: how to covert array into a char 
Java :: osmdroid get current zoom level 
Java :: Number formatting java with locale 
Java :: interface java 
Java :: how to convert integer to string in java 
Java :: double to string in java without tovalue 
Java :: how to get start char in string in java 
Java :: horizontal recyclerview item width half of screen android 
Java :: https://www.baeldung.com/hibernate-inheritance 
Java :: how to know if a file is iso-8859-1 encoded in java 
Java :: Unexpected end of file in android studio activity main.xml 
Java :: how to initialize main in java 
Java :: return class name java 
Java :: contient java 
Java :: java random threadlocalrandom double with 2 decimal places 
Java :: csv compare 
Java :: Java Creating ArrayBlockingQueue 
Java :: miles to km converter programm in java 
Java :: refresh sharedpreferences going back java 
Java :: Simple For Loop Java Example 
Java :: java nested static class 
Java :: Java if...else Statement 
Java :: garbage collection in java 
Java :: android studio checkbox result 
Java :: java array slicing 
Java :: Java Method Create Basic 
Java :: How to launch app in your android mobile phone 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =