For moving the text file we have to using or imports the
System.IO namespace. Because the all file classes and methods are located in
System.IO namespace. We use the System.IO.File.Move() method to move the text
file.

When we
execute the above code the file filetomove.txt located in the temp folder will
move to the move folder as filename.txt. If
the move folder does not exists then the file will not moved and will arise the
'System.IO.DirectoryNotFoundException’ error."If you like my blog or articles, you can appreciate by leaving your comments or Liking my Facebook pageAspdotnet-kishore, following on Google+ Aspdotnet-Kishore, Twitter on AspdotnetKishore, Linked in Aspdotnet-Kishore, stumbling my posts on stumble upon and subscribing on RSSfeed Aspdotnet-Kishore for free updates directly to your Email inbox . Watch my blog for more articles"