Storage of analog port data into EEPROM

Hello,
I am trying to store data from analog port in EEPROM.
The problem i am facing is at single location i am able to store integers from 0-255. but my data from analog port is in range 0-1023, so how should i store it without loosing any data? coz if i use map function, i can't retrive back the data as remapping from 0-255 to 0-1023 will cause loss of data.. so please suggest me how to store the data in EEPROM.

Thanks.

Regards,
Monesh Raut.

http://arduino.cc/playground/Code/EEPROMWriteAnything

you can define a float in the structure and still get it saved

Thank you sir for your help..

Regards,
Monesh Raut

you can define a float in the structure and still get it saved

How will that help with storing an int?

PaulS:

you can define a float in the structure and still get it saved

How will that help with storing an int?

I was illustrating that it can store anything, the link has example with long int.

I am trying to store data from analog port in EEPROM.

Hopefully not too often. The EEPROM has a specified lifecycle of 100000 write/erase cycles per cell.