This is as well as I can remember: The man visits an old woman each week - it had started as volunteer work, but had turned into something which was taking over his life. He wanted to get her a nurse, but couldn't afford it. He owns a tape store, where the tapes can be played into your mind (Total Recall style), and one day someone breaks in to rob him. Somehow he straps the guy to the machine, and figures out that he can run it backwards to get a memory out and record it to tape.
He ends up taking a bunch of his own memories of war and history, edits out the graphic parts, and then sells it to a school. The school wants more and more tapes, and at the end he ends up recording most of his memories (erasing them in the process), using the money to take care of the woman, and leaving himself a note that he was a happy person, and should live a happy life.