File Handling - Formatted data reading and writing - another example