Attatching .doc's

how do i create a button that downloads a text file onto the users desktop?