add 'readFileP' and 'writeFileP'