Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you take string into InputStream?

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


Please Help Members By Posting Answers For Below Questions

What is the Difference between Final Class && Abstract Class?

1070


What does  mean in regex?

1050


What type of variable is gender?

984


What are the 6 functions?

965


What is hotjava?

1001


What is import java util arraylist?

1175


What is nan inf?

1069


What do you mean by chromounits in java8?

946


What is a heavyweight component?

1017


How many bytes is a string in java?

986


What is the difference between applet and application?

1007


What is java lang object?

966


How many unicode characters are there?

1037


write a program that list all permutations of ABCDEF in which A appears before B?

2480


What is the difference between import java.util.date and java .util?

1050