Access EEPROM of BBB

New with BBB. I want to know how to access EEPROM (4KB) of BBB and read and write a data structure into it.
Please suggest me some documents or codes from which I can make my concepts clear.
Thank You.

consider it as a file at:

/sys/bus/i2c/drivers/at24/1-0050/eeprom