Thank you so much, stevieb, I see now how it works. I tried it with the open and close outside, also, but of course I needed print to have the right parameter.
One follow-up question: The results file now gives me the urls from the resume results, rather than the contents of the results. How do I get it to save what it on the page of each url?
And also, if you feel like it, is there a tutorial about the syntax for open and close you can point me to? The one that I read obviously showed using parentheses instead of the separate arguments.