infinite loop in seek(), readByte() and writeFile() not working
merge conflicts