$filetell += length $buf;