Seneca said this quote

Desultory reading is delightful, but to be beneficial, our reading must be carefully directed.