// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.io.*;

public class WrtDemo {
    public static void main(String[] args) throws Exception {
        try(PrintWriter pw = new PrintWriter("pw_" + args[0].toLowerCase() + ".txt", args[0])) {
            pw.printf("%d %d %d\n", 1, 2, 3);
        }
    }
}
