is there a way to stop BinaRyreader.readchars()/BinaryReader.readbytes() when encountering a 00 byte ?? thank you.
sample:
for (int i = 0x88; i <= num_pointers; i += 0x50)
{
br.BaseStream.Position = i;
listView1.Items.Add(br.ReadBytes(21).ToString());
}
I’d be tempted to use ReadByte instead of ReadBytes.
Then add an inner loop, so that instead of reading in chunks, you read just one byte at a time. Use a while loop so that you keep reading until the value you just read is 0x0.