AUTO TRENDS

You can get the latest Automobile new's and the latest and upcoming models of BMW,Mercedez Benz,Toyota,Hyundai,Tata..
Popular Technology Articles

Get Latest Tech News, Updates

BufferedOutputStream

Posted by Tharadas179 Wednesday, August 19, 2009

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);
}
}
}

0 comments

Post a Comment