Read this tutorial to learn how to use a serial link to transfer data from one arduino to another one.