Line count and file read and write and Exception examples