Serial Read with MEGA2560

Hello,

I am trying to read a function call using the serial port RX0 pin on the MEGA2560.
The string coming looks like

out(A, 2, 1)

The first value inside can be A or B or C or D.
The second and third values are numbers.

I have tried using Serial.read , Serial.find commands without any success.

Any idea what command I need to use to read a command string like this and then translate
the members into values. The first one is not a value. It is a string (A, B, C, or D)

Thanks

Bobby

Hello

Thank you for the examples. It was great. I am using the Example 5 - Receiving and parsing several pieces of data. That is exactly what I needed. It works when I use the "Serial Monitor" under the
TOOLS menu.

But I like to send the data from another external board that is connected to PIN 0 (RX0) of the
Mega 2560. Unfortunately MEGA2560 does not see it.

Do I need to change any setting?

Thanks
Bobby

Sorry. I figured it out. Needed same GND.

Thank You

But I like to send the data from another external board that is connected to PIN 0 (RX0) of the
Mega 2560.

Why would you connect an external
board
to pin 0? There are three other hardware serial pins that
you
could have connected the device to, leaving Serial free for
debugging
purposes.

What's with the random carriage returns in your post? They do not improve readability.