FILE SYSTEM IN JAVA
import java.util.*;
public class file {
public static void main(String args[]) {
try {
Formatter f = new Formatter("a.txt");
f.format("avinash");
f.format("rathod");
f.close();
} catch (Exception e) {
System.out.println("Error");
}
}
}
OUTPUT: avinashrathod
No comments:
Post a Comment