Just give the reference code and change the reading part to mine:
Public static void main(String[] args) {
File io _ Fil = new File(" E:\ \ Java \ \ study \ \ src \ \ io _ File . txt ");
Try {
file inputstream file inputstream = new file inputstream(io _ Fil);
Try {
byte b[]= new byte[(int)io _ fil . length()]; //The array size is determined by the file.
int len = file inputstream . read(b); //Reading content
system . out . println(" content:"+new String(b));
file inputstream . close();
} catch (IOException e) {
e . printstacktrace();
}
} catch(file not found exception e){
e . printstacktrace();
}
}
}
Non-carious diseases of hard tissues of teeth
include
1. Colored teeth
2. Abnormal tooth development.
3. Tooth injury
4. Chron