
November 29th, 2012, 04:24 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 1
Time spent in forums: 17 m 40 sec
Reputation Power: 0
|
|
|
Number string to arrays
Hello, I am a bit of a newbie with C#. I'm trying to convert a number string/int to X arrays by splitting it by Y. Let me visualize:
c# Code:
Original
- c# Code |
|
|
|
string bla="45263263"; arrays=bla.toarray(bla.splitby(2)) //this would output: array1=[4,5]; array2=[2,6]; array3=[3,2]; array4=[6,3];
I would be grateful if you would like to help me! Thanks in advance!
|