java fileinputstream
try{
FileInputStream fin=new FileInputStream("D:\\testout.txt");
int i=0;
while((i=fin.read())!=-1){
System.out.print((char)i);
}
fin.close();
}catch(Exception e){System.out.println(e);}
Also in Java:
- how to find length of array in java
- how to get length of integer in java
- double parse jtextfield
- adding an element to the end of a linked list java
- query java persistence
- java initialize string array
- difference between compile and execute in java
- boolean parse jtextfield
- islowercase java
- number to char java
- continue in java
- loop and save letters in a string java
- date to string java
- how to check if a string is in alphabetical order in java
- java fx display simple rectangle
- select photo from camera android
- get current unix timestamp java
- how to add an object to a list of objects in java
- protect java
- java flood fill
- java methods
- java prev permutation
- jsonobject to java object
- java random number generator in range