J.K. Rowling wrote Harry Potter while on benefits in Edinburgh cafés after twelve publishers rejected the manuscript.