import java.io.*; public class ForcingUpdates { public static void main(String[] args) { try { // Open or create the output file OutputStream os = new FileOutputStream("tapan.txt"); // Write some data to the stream byte[] data = new byte[] { (byte)124,(byte)66 }; os.write(data); os.close(); } catch (IOException e) { System.out.println("The exception has been thrown : " + e); } System.out.println("Congrats you have entered the text forcefully"); } }