just a file i/o tutorial from beginning ruby