import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
class FOSDemo1 {
public static void main(String[] args)
throws FileNotFoundException, IOException {
FileOutputStream fos = new FileOutputStream("bbc.txt");
fos.write(10);
System.out.println("Data has been saved");
fos.close();
}
}