the CardInfo example works?
Yes this example works and will write a file to the card.
When I try and post the actual error it tells me I have gone over the allowed length (9000 characters). Should I post it in a text file?
the CardInfo example doesn't write to SD card. it only reads.
Regarding the errors when compiling your sketch, you have an extra closing brace near the start of your printData function, which causes the rest of the code intended to be inside that function to be not in any function, which is not allowed.
off topic question. what for is the Base shield if SD card shield has I2C Grove connector?