Hi,

I am having difficulties on how I can remove all the "\0" (and all other garbage stuffs) in my variable.

Code:
byte[] mybuff = new byte[512];
API_Read(handle, block, mybuff);
After calling the API, mybuff will return something that I will convert to string by using this

Code:
string newStr = Encoding.ASCII.GetString(retbuff);
However,...