BufferedOutputStream



import java.io.*;
public class BufferedOut
{
public static void main(String args[])throws IOException
{
String str="India is my Countery";
byte buffer[]=str.getBytes();
FileOutputStream fs=new FileOutputStream("ss.text");
BufferedOutputStream br=new BufferedOutputStream(fs);
try
{
br.write(buffer,0,str.length());
br.flush();
}
catch(IOException e)
{
System.out.println(e);
}
}
}


Responses

0 Respones to "BufferedOutputStream"

Post a Comment

 

Recent Comments

Popular Posts

Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors