Convert from shapefile to ascii file

Hi,

I have predictor variables in shapefile form. I would like to use them to produce a predicted species map using the gbm package. How can I convert the predictor variable from shapefile to ASCII files?

Thanks