How to create an ISO 9660 image file

Does anyone know or have any source code that shows how to create and iso image from a directory of files? I am not interested in creating from a cd, i simply want to add files and dirs and create the iso image from that.
Thanks.
[239 byte] By [JasonS] at [2007-11-18 19:27:37]