Does the iphone battery stocks the phone's files?

I'm going to replace my iphone's battery, will the used battery keep my deleted pictures and videos?

Replacing the battery won't make you lose stored files. They aren't stored in the battery.

No it won't, the data will still remain on your phone, and nothing will be deleted. BTW if you are still not convinced by my talk just back-up your files and data then change the battery.

No because it is a battery, not a memory device…

I would bring it into the Genius bar. You never know and you don't want to risk it