Send data between two Arduino board over serial port

Dear All Have a nice day

I need to transfer data between two Arduino uno via serial port ( rx , tx);

Everything is working and data can exchange between two boards

My question is
I named two board A and B

I want to send three data from board A

Ex.

x = 23;
y = 30;
z = 50;
Serial.println(x);
Serial.println(y);
Serial.println(z);

I need to read above there values from board B and save the data in three variable

All data is receiving but please advice to save the above xyz value in board B

Thanks in advanced

See Serial input basics - updated for techniques

"Save" is a relative term. The most obvious is to use an SD card on board B and save as a .csv file thereon. Assuming that is what you want, the datalogging example included in the IDE should be all you need to do this. You obviously already know what you need to know about serial input and wiring.

I have recently come to the conclusion that communication between Arduino boards is easier using I2C. Have a look at this I2C Tutorial

...R

1. Post your connection diagram between the 2 Arduinos.

2. Post the sketches that you have uploaded in Board A and Board B.

3. Where do you want to save the received data -- in SD card or local volatile variables?