search
[last updated: 2019-06-14]
go to: Java
go to: Java Notes
-----
(link to:) Baeldung - best tutorial
// this one worked:
import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
out.write("aString");
out.close();
System.out.println("File created successfully");
}
catch (IOException e) {
}
}
}
-----
.
.
.
eof