Samuel Johnson reportedly said:
"The greatest part of a writer's time is spent reading, in order to write; a man will turn over half a library to make one book."
But addition to reading prolifically, a writer should note the literary techniques used in the books he or she reads. Like Sarah Waters advised:
"Read like mad. But try to do it analytically [too]"