How to eeprom write and read char(number)

Hi
any one please tell me how to write and read eeprom data in char.
there is phone number char[10]="077xxxx008"
this is input function.(phone number can change in keypad(4 by 4))
how to save it in internal eeprom
Thanks.

Try this:
This will run once (all is in setup()) each time the processor is reset.

#include <EEPROM.h>

char phoneNumber[] = "077xxxx008";
int startingAddress = 30;

void setup()
{
  Serial.begin(9600);
  
  for(int n = 0; n < sizeof(phoneNumber); n++) // automatically adjust for number of digits
  {
     EEPROM.write(n + startingAddress, phoneNumber[n]);   
  }
  
  char readNumber[11];  // make sure there is enough room for all digits
  
  for(int n = 0; n < 10; n++)
  {
     readNumber[n] = EEPROM.read(n+startingAddress);     
  }
  readNumber[sizeof(readNumber)] = '\0';  //Make it into a string for easy printing
  
  Serial.println(readNumber);  
}

void loop()
{
  
  
}

Might want to minus one (overflow):

readNumber[sizeof(readNumber) - 1] = '\0';

Also, as you've written the null, you can also read it back (and skip the line above).

PYro, you are right. My bad. :-[

#include <EEPROM.h>

char phoneNumber[] = "077xxxx008";
int startingAddress = 30;

void setup()
{
  Serial.begin(9600);
  
  for(int n = 0; n < sizeof(phoneNumber); n++) // automatically adjust for number of digits
  {
     EEPROM.write(n + startingAddress, phoneNumber[n]);   
  }
  
  char readNumber[11];  // make sure there is enough room for all digits
  
  for(int n = 0; n < 10; n++)
  {
     readNumber[n] = EEPROM.read(n+startingAddress);     
  }

  
  Serial.println(readNumber);  
}

void loop()
{
  
  
}

Thanks a lot it is work for me.
Thank you for your time.