Use readlines() method for terser code