W. Somerset Maugham said this quote

I began to meditate upon the writer's life. It is full of tribulation. First he must endure poverty and the world's indifference; then, having achieved a measure of success, he must submit to a good grace of its hazards...But he has one compensation, Whenever he has anything on his mind, whether it be a harassing reflection, grief at the death of a friend, unrequited love, wounded pride, anger at the treachery of someone to whom he has shown kindness, in short any emotion or any perplexing thought, he has only to put it down in black and white, using it as a theme of a story or the decoration of an essay, to forget all about it. He is the only free man.