Your code is not posted correctly.
Please learn how to post formatted code within code tags.
There is an automatic function for doing this in the Arduino-IDE
just three steps
1)press Ctrl-T for autoformatting your code
2)do a right click with the mouse and choose "copy for forum"
3)paste clipboard into write-window of a posting
Please read "How To Use This Forum".
Your code should appear in a block like this:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
but it's saving only half data & print half data
You can not perform a block write across page boundaries. The data will wrap to the beginning of the page. Here is a better tutorial which give some information on how to manage the page boundary and wire library buffer limits.
https://www.hobbytronics.co.uk/eeprom-page-write
Your page size looks to be 16 bytes with the eeprom you are using.
You may also want to try using the extEEPROM.h library. Available through the library manager.