the example below implements a var protocol handler that allows readwrite access to a named global variable using standard filesystem stream functions such as fread the var protocol implemented below given the url varfoo will readwrite data tofrom $ globalsfoo 