package com.godoro.io;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
public class WriterTest {
public static void main(String[] args) {
BufferedWriter bw=null;
try {
String path = "D:\\Visual\\Sets\\Java\\Fundementals\\Directory\\out.txt";
FileWriter fw = new FileWriter(path);
bw = new BufferedWriter(fw);
bw.write("Godoro\r\n");
bw.write("Java & OOP\r\n");
bw.write("Java Web & Database\r\n");
bw.write("Java Enterprise\r\n");
bw.write("Java Desktop\r\n");
bw.write("Java Android\r\n");
} catch (Exception e) {
System.out.println("Hata oldu "+e.getMessage());
//e.printStackTrace();
} finally{
try {
if(bw!=null){
bw.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
Dosyayı İndir