I want to use text from the clipboard in a console application. Is that possible? How would it be done?

Thanks.