Commit 82d1131e by Patryk Czarnik

zapis z close

parent f8764065
package p24_pliki;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
public class Zapis2 {
public static void main(String[] args) {
try {
PrintWriter out = new PrintWriter("out/zapis2.txt");
out.println("Ala ma kota");
out.println("Ola ma psa");
out.println("Ela ma chomika");
out.println("Koniec");
out.close();
System.out.println("Gotowe");
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment