>aFunction() >{ > string fileName; > while( PopQueue(out fileName) ) > { > } >} > > >bool PopQueue(out string fileName) >{ >// if any file, put it in fileName and return true >// otherwise return false >} >Both great ideas. No reason other than my not being used to using out parameters. I wasn't aware a null comparison was faster so I learned something too. Thanks