C
Chris
What is the best way to convert a bytearray into a string ?
I thought I could do it using the code below, but is there anything
faster/easier than this? Thanks!
Chris
int aLength = 100000;
byte[] myByteArray = new byte[aLength ];
string myString = "";
for (int i=0; i<aLength ; i++)
{
myString += (char) myByteArray;
}
//work with this new string: cut out every char=='A'
myString.split('A');
....
I thought I could do it using the code below, but is there anything
faster/easier than this? Thanks!
Chris
int aLength = 100000;
byte[] myByteArray = new byte[aLength ];
string myString = "";
for (int i=0; i<aLength ; i++)
{
myString += (char) myByteArray;
}
//work with this new string: cut out every char=='A'
myString.split('A');
....