Apr 21
It’s easy to convert a byte array to a string. For an ASCII string, use the Encoding.ASCII.GetString static method:
byte[] buffer = new byte[10]; // todo: populate the buffer with string data string s = Encoding.ASCII.GetString( buffer );
[…] String to Byte Array C# Convert String to Stream, and Stream to String Read File into Byte Array Read more… Share and […]
How to compare this arrays
int[] a={1,2,3};
string[] b={“one”,”two”,”three”};
so that i want to get the output as
1:one
3:three
2:two