link to pubchem server

Hello, I am using a protocol that uses smiles and spits out pubchem's CID number as a text file. Using this further, what is the best way to get the webpage open directly from this CID number (e.g. my output text file contains "CIDnumber 8057".

using this number i also want to add components in this protocol that opens up a webpage also with this URL

"http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=CIDnumber&loc=ec_rcs"

Thank you

nar