[PD] readsf and filelength