Does anyone know how to write to a text file using VB only?

I need to query an access database. Then gather the queried information and then populate that information into the text file.

Can someone help a new comer to VB coding.

Thanks

Rey