I need help writing to a text file in vb.net

I have used the fileopen() and fileput() functions, but these
do not give the flexibilty i require.