I need to fill a dataset with data from an object, populate a flat file with that data, then upload the file via FTP to a server.

What is the best way to FTP in .NET? I know that in earlier versions the INet class was used, but this isn't the case now. I just can't seem to find the best way to do this. The prior way to do this was done in one line:

'objFTP.Execute "ftp://ftp:[email protected]", "Put c:\xlelu" & name & ".blk xlelu" & name & ".blk"

...where objFTP is an INet object. I currently know what server, etc. that I would like to use for testing this functionality but is there code that is analogous to the above, or do I need more?

Thanks..

~Mike