3 ms·
Would something like this help? (No of course I haven't compiled it.) int len; while ((len=file.Read(buf,0,buf.Length)) > 0) { for (int i=0; i<
by kerblang 5y ago
Would something like this help? (No of course I haven't compiled it.)
int len;
while ((len=file.Read(buf,0,buf.Length)) > 0) {
for (int i=0; i<len; i++_) {
if (buf[i] == '1') {
counter++;
}
}
}