gets the value associated to a virtual handle and removes it
INCLUDE 'msglib.h' rem_handle(file,FileHandle,"DEMONSTRATION")
rem_handle(VirtualHandle,RealHandle,ErrorString)(i,o,i)
handle(VirtualHandle) (i) virtual handle to be evaluated
void(RealHandle) (i) value associated with the virtual handle
string(ErrString) (i) string printed in case of misuse
Acts similar to handle_value (), but additionally removes the association between the virtual and the real handle. Please consult the handle_value() () description for details.
new_file(my_data,"Hello World",user_string,"OPEN DATA"). .... handle_value(my_data,X,"GET DATA"), write(X),nl. .... rem_handle(my_data,_,"LOSE DATA").
A runtime error occurs if an invalid handle is given.
prolog-process, client-server, object