Clean up IO code.
Read file content.