•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 397,625 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,454 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 11137 | Replies: 4
![]() |
•
•
•
•
Originally Posted by neelu421
I have a string "Hello". How can I copy this string into an array in words e.g 'H', 'e', 'l', 'l', 'o'.
Thanks in advance
a string is nothing more then an array of chars, so if you want to split up the strings letters into a different string array seperatly you could do something like this:
string myString = "blah";
string[] myArray= new string[myString.Length];
for(int i = 0; i<myString.Length; i++){
myArray[i] = myString[i].ToString();
}•
•
Join Date: Jan 2006
Location: Its the internet... i am everywhere lol
Posts: 274
Reputation:
Rep Power: 3
Solved Threads: 10
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
Similar Threads
- How do I convert a vector to a String array ? (Java)
- Coverting a string to a byte array (Visual Basic 4 / 5 / 6)
- Array required, but java.lang.String and java.util.Vector found (Java)
- copy string and convert to upper case (Assembly)
- Problem with string search of an array (C++)
- string to integer array transformation (C)
Other Threads in the C# Forum
- Previous Thread: Converting a long to an Enum Value
- Next Thread: Calling a class upon button click



Linear Mode