first sketch, can read the size of one buffer from a file