How can i create a file during running time

How can i create a file(xml or txt )during running time ,and write the information into it

through normal .NET function see System IO on msdn or go-mono

This is great! Thanks