Splitting String from Serial I am currently working on a program for an Arduino uno and want to, in the program, when it receives a 16 digit number from a serial transmition, it will split the 16 digit number into 4 separate 4 digit numbers.

For Example: 
The computer sends the Arduino the number 1100115011001150 and I want the Arduino to break the number so that "Avalue" would equal 1100, "Bvalue" would equal 1150, "Cvalue" would equal 1100 and so on...

Thanks for any help you can provide!
char ArrayBuffer[][4] = {};         // holds four characters, must be 


declared as global to loop() 

in 

loop()
{
byte Index = 0;                    // initialize array index 
if(Serial.available())             // have data in Serial buffer 
{
byte Count = Serial.readBytes(ArrayBuffer[Index],4); // read       //4             //characters     into array buffer , returns actual number //of        characters //read and times out if less than 4 characters are //currently in Serial buffer 
 Serial.println(ArrayBuffer[Index]); // print buffer to monitor 
}while(++Index != 4);              // read 4 by 4 characters from incoming stream 
}


...
continue with loop - process ArrayBuffer as required 
} 

This is one way to get the incoming stream from Serial buffer into for individual buffers, however, it is better, less chance of misdirecting the data into wrong buffer (index)  to read the entire buffer at once instead of using he readBytes four times. 
Just my opinion, your mileage will vary. 

PS what is the trick to format the code and text correctly ? 
This is a mess. 
I cannot get the code block to indent, I can get only the first ( four spaces line.