StringBuffer sb = new StringBuffer();
Scanner sc = new Scanner(System.in);
System.out.println("yaz:");
System.out.println();
System.out.println("ad:");
sb.append(sc.next());
File file = new File("hale.txt");
FileWriter fw = new FileWriter(file);
Formatter yaz = new Formatter(fw);
yaz.format("%s", sb);
yaz.close();
Scanner oxu=new Scanner(file);
while(oxu.hasNext()){
System.out.println(oxu.nextLine());
}
Hiç yorum yok:
Yorum Gönder