Write Price Data to ASCII file?

 
Does any one know if there is a way to export price data to an ascii file? You can download price data to do backtesting but I don't know how to actually find that data and do analysis on it in excel or any other programs. Also, if there is a way, could I run functions on the price data like iMA so I could have the moving average of the price data instead of having to create the moving average values in another program? Thank you for your help.