my template for textfile I/O