How Can I Write My CD Write Program...

Can I write CD on my program ?
Yes, But How can ?
How Can I access CDRW  ?
and How Can I send data, and write ...