import java.io.*;
public class OutBytes 
{
	public static void main (String args[]) 
  	{
		int data[] = {65,66,67,68,69};
		try 
		{
			FileOutputStream file = new FileOutputStream ("test");
			for (int i =0;i<data.length;i++)
			{
				file.write(data[i]);
			}
			file.close();
		}
		catch(IOException e)
		{
			System.out.println("Error");
		}
	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus


Footer1