writeFile supports new src streaming and non-read options