Support reading from files without seek