import java.io.*;
class writebyte
{
public static void main(String a[])
{
int i =0;
byte arr[]={'t','a','n','m','a','y'};
FileOutputStream outfile=null;
try
{
outfile=new FileOutputStream("tanmay.txt");
outfile.write(arr);
outfile.close();
}
catch(IOException e)
{
System.out.println(e);
System.exit(-1);
}
}
}
class writebyte
{
public static void main(String a[])
{
int i =0;
byte arr[]={'t','a','n','m','a','y'};
FileOutputStream outfile=null;
try
{
outfile=new FileOutputStream("tanmay.txt");
outfile.write(arr);
outfile.close();
}
catch(IOException e)
{
System.out.println(e);
System.exit(-1);
}
}
}
No comments:
Post a Comment