File Handling: Formatted Data Reading and Writing Example

code: