is this the charger and the cord to charge the camera or just the cord to plug into the piece that plugs into the wall plug in?
This is an AC ADAPTER THAT POWERS THE CAMERA. IT IS NOT A BATTERY CHARGER. This adapter is often used when you have to download your memory cards from the camera. If you have a weak battery while downloading you may screw up the download.
Get a cheap card reader that plugs into your computer via a USB plug.