Does anyone know of a function that cleans out a file, as fwrite() only adds to it. Thanks
Printable View
Does anyone know of a function that cleans out a file, as fwrite() only adds to it. Thanks
oh you want to clean out a file then add stuff to it, not append it?
I think fwrite() is you're only choice. or you can delete the file than have fwrite() make a new one. either way you will nee to have a couple of lines instead of one function.
Can't you just open for output then close?
Everso