I've never done SD card stuff, but serial is very simple:
http://arduino.cc/en/Tutorial/ASCIITable
By the way, the easiest way I've found to do serial comms from a
computer is using boost's asio serial library. I have some example
code if anyone wants...
> Hi
> I know its possible to tell an arduino to read a file from an SD card.
> I would like to parse a file and send one line at a time over a serial
> link. Waiting for a serial text reply before sending the next line.
>
> The idea is to send gcode to a second arduino running grbl. So far I
> am sending the code with a PC.
>
> Is this relatively straightforward to do? I have little arduino
> experience.
The hardware portion is pretty trivial, as is the code required to read raw data from the SD card, since SD cards support SPI:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235125412/all
If you have an actual file system on there, you will have to also implement a FAT filesystem reader (some are linked in the thread). You might find it easier just to write the gcode to the SD card in raw format (i.e. using dd on Unix) and avoid the filesystem altogether.
Nicholas
Any reason you can't get the second arduino to read from the SD card itself?
/m