ayyappashrine 0 Newbie Poster

Dear friend, pls tell me how to burn cd using vb.net

give me a very very simple pgm to write a line "hello how are you" in a file "mycdfile" into the cd/dvd

already i tried to write the pgm as follows, provided my cd/dvd always opens in drive 'G:\'

but it didnt work saying that 'no privilege is available' and 'cd is readonly' .. pls help to solve this problem

Public Class fileform

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim sw As IO.StreamWriter = IO.File.CreateText("G:\" & TextBox1.Text)
sw.WriteLine(TextBox2.Text)
sw.Close()
End Sub

End Class

pls help..