there isn't anything in the standard library afaik, but you can find code to do this on dejanews. see for example <URL:http://www.deja.com/%3ddnc/%5bST_rn%3dps%5d/getdoc.xp?AN=621175578>. -- erno