22 Kasım 2009 Pazar

Java da text dosyaya yazmak


StringBuilder sb = new StringBuilder();
sb.append("yazılan satır 1");
sb.append("diğer satır");

File file = new File("c:\\dosyaAdi.txt");

Writer output = new BufferedWriter(new FileWriter(file));
output.write(sb.toString());
output.close();

Hiç yorum yok:

Yorum Gönder