Difficulty is recorded with every block in the block chain.
Right you are. I forgot about that.
Is there an easy way to extract the blockchain data from the file that is downloaded from the bitcoin client? Or is there an easier way to get that from blockexplorer.com?
And where would one get historical pricing data?