Really stupid question

How can I split a null string one character at a time and then store that one character as a null string

I. E
String test="hello "

for(i=0;i<test.len,i++)
string ltr=test(i)

i found a bit of code simular to that but it will not work

mikel0829:
How can I split a null string one character at a time and then store that one character as a null string
I. E
String test="hello " ;

test in the example is NOT a string null terminated (array of chars null terminated), is an object of String type.
array: http://arduino.cc/en/Reference/String
class: http://arduino.cc/en/Reference/StringObject

String test="hello ";             // why the ending space??? 
for(int i=0;i<test.length();i++)
{ char ch=test[i];                       // also for String object you can read one char at a time 
  Serial.println(ch);
}

You can use the below to convert a String to a c-string.

http://arduino.cc/en/Reference/StringToCharArray

Ok well the space was a accident but what I am working on is a l multiplexed led display.

i Want to be able to loop through a string determine what each letter is and then display it one by one. I am new to c++/arduino.

really do appreciate the fast replys

Why do you need strings? Why not use an array of chars?

There would be no need to split an array of chars - just refer to each element in a loop.

...R

mikel0829: i Want to be able to loop through a string determine what each letter is and then display it one by one. I am new to c++/arduino.

You probably could use the below in an incrementing loop to evaluate each character.

http://arduino.cc/en/Reference/StringCharAt