UPDATE fputs instead fwrite