File operators
EXPLANATION : - File operations involve interacting with files on a computer system, allowing you to create, read, write, and delete files. Common operations include: 1. Open a file – Access a file to read or modify it. 2. Read from a file– Extract data from the file. 3. Write to a file– Add or modify data in the file. 4. Close a file– End the interaction with the file to free up system resources. 5. Delete a file – Remove the file from the system. These actions help manage data in programs and applicationsapplications PROGRAM:- import java.io.File; import java.io.*; import java.io.FileWriter; import java.io.FileReader; import java.io.BufferedReader; import java.io.IOException; class FSC{ public static void main(String args[])throws IOException { int i; DataInputStream d = new DataInputStream(System.in); String fileName = "msc1.txt"; do { System.out.println("\nwhich type of file operation you want to perform?"); System.out.println("\n1.file creatio...