Hi Ors,

Have you tried doing what juarezjunior recommended? If i read your requirment correctly, it would look something like this:



byte[] buffer = new byte[512];
int c;
while...