It might sound like an unconnected thing or even paradoxical, but it is not. As Stephen King wrote, in On Writing: 'If you want to be a writer, you must do two things above all others: read a lot and write a lot.' And: 'If you don't have time to read, you don't have the time (or the tools) to write. Simple as that.'
Worse -- or better -- still, you need to read well. In order to write, you must first understand what it is you are writing, both implicitly and explicitly (meaning, the content ought to be both within your subconscious (rather, the Freudian 'pre-conscious') and your conscious mind). There are a number of books to help you write better, but few to help you read better, and, more importantly, understand more.
Ryan Holiday (Daily Stoic) has an excellent video on his three-step process to reading, absorbing, documenting, remembering, and, ultimately, understanding novels and non-fiction books. It involves what is known as a 'commonplace book': a location for all the things you have read and wish to remember and use. They have been used for thousands of used, most notably during the Renaissance and throughout the 19th century. Some people today use little cards or a large binder, others use a 'wall of ideas', and some use a virtual folder. Unless you are a hyper-genius, you will never retain volumes of information in your head, either of your own making or from your studies (Tesla, for example, was known for this feat, as was Nietzsche). Of course, even geniuses struggle with knowledge retention, memorisation, and citation. The best way to recall information is to be capable of retrieving it at a moment's notice -- and that is why I suggest a 'commonplace book' of some sort. I use the latter; in fact, I use many folders within many folders (each filled with individual files). I will read a book, next to my laptop, and stop whenever I see something I really like, then I will type it out into the assigned file.
Ryan's three-step process revolves around reading hardcopy books, taking notes, then writing them out onto cards (longhand), then filing them away in a large box. Using cards is a common method for modern writers and readers, more so in the context of writing novels. Indeed, a few famous novelists use this method for their novel-writing. If you write longhand -- which I do not -- then this method is highly suggested, and it may even be the best way to reinforce the information since you are forcing yourself to read it and re-read it as you write it out. Second best, then, would be my method of typing it out (by hand). Copying and pasting information from a virtual book works great for quickly storing information, but it is not as good for memorisation.
Further, you need to be capable of thinking, really thinking. Nietzsche and Jung and Aristotle, among others, will aid you in this.
'If a writer of prose knows enough of what he is writing about he may omit things that he knows and the reader, if the writer is writing truly enough, will have a feeling of those things as strongly as though the writer had stated them. The dignity of movement of an ice-berg is due to only one-eighth of it being above water. A writer who omits things because he does not know them only makes hollow places in his writing.' - Hemingway, Death in the Afternoon
'Since reading of any sort is an activity, all reading must to some degree be active. Completely passive reading is impossible; we cannot read with our eyes immobilized and our minds asleep. Hence when we contrast active with passive reading, our purpose is, ïŹrst, to call attention to the fact that reading can be more or less active, and second, to point out that the more active the reading the better. One reader is better than another in proportion as he is capable of a greater range of activity in reading and exerts more eïŹort. He is better if he demands more of himself and of the text before him.' - Mortimer Adler, How to Read a Book
Books & Resources to Help You Read Better:
Ryan Holiday's 3-Step System for Reading Like a Pro (YouTube video title)
How to Read a Book by Mortimer Adler
The Well-Educated Mind by Susan Wise Bauer
On Writing by Stephen King
Maps of Meaning by Jordan Peterson
The Sense of Style by Steven Pinker
The Psychology of Creative Writing by Scott Barry Kaufman