C++
FILE * detach();
Description
Call this method to disassociate the current associated FILE pointer.
Once the existing FILE pointer is disassociated, the internal FILE pointer will be reset and subsequent calls to any read/write methods will fail.
Returns the previously associated FILE pointer.