I am tring to create a txt file and then inserting data into the file

i am able to create a file using the code:
System.Io.Cretefile("c:\New folder\ppp.txt")

Now how do I write a data into this file.

Please guide me !!