Read file contents correctly