Answer Posted / himanshu gupta
String str="";
int i=0
InputStream in=new FileInputStream("File url");
while((i=in.read())!=-1)
{
str=str+(char)i;
}
System.out.println(str);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of abstract class?
Difference between collection, collection and collections in java?
Tell some latest versions in JAVA related areas?
Can we call virtual funciton in a constructor ?
What are locale settings?
Is set ordered?
What is the difference between JDK and JVM?
What is mutable object and immutable object?
What is ordered map in java?
Which are different kinds of source code?
How does compareto work in java?
Is 0 true or false in java?
What is namespace in java?
Compare java and python.
how come we know the object is no more used in the class?