fopen/fprintf insted of open/write