Charles Bukowski said this quote

There is only one place to write and that is alone at a typewriter. The writer who has to go into the streets is a writer who does not know the streets. . . when you leave your typewriter you leave your machine gun and the rats come pouring through.