<p>I want to copy a file from A to B in C#. How do I do that?</p>

[{'answer_id': 19935, 'author': 'Jedi Master Spooky', 'author_id': 1154, 'author_profile': 'https://Stackoverflow.com/users/1154', 'pm_score': 1, 'selected': False, 'text': '<p>System.IO.File.Copy</p>\n'}, {'answer_id': 19936, 'author': 'Eric Z Beard', 'author_id': 1219, 'author_profile': 'https://Stackoverflow.com/users/1219', 'pm_score': 2, 'selected': False, 'text': '<p>Use the FileInfo class.</p>\n\n<pre><code>FileInfo fi = new FileInfo("a.txt");\nfi.CopyTo("b.txt");\n</code></pre>\n'}, {'answer_id': 19937, 'author': 'Shaun Austin', 'author_id': 1120, 'author_profile': 'https://Stackoverflow.com/users/1120', 'pm_score': 5, 'selected': True, 'text': '<p>The File.Copy method:</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/library/system.io.file.copy.aspx" rel="nofollow noreferrer">MSDN Link</a></p>\n'}, {'answer_id': 19938, 'author': 'Corey', 'author_id': 1595, 'author_profile': 'https://Stackoverflow.com/users/1595', 'pm_score': 4, 'selected': False, 'text': '<p>Without any error handling code:</p>\n\n<pre><code>File.Copy(path, path2);\n</code></pre>\n'}, {'answer_id': 52519781, 'author': 'Stan van de Bovenkamp', 'author_id': 10391137, 'author_profile': 'https://Stackoverflow.com/users/10391137', 'pm_score': 2, 'selected': False, 'text': '<p>This should work!</p>\n\n<pre><code>using System.IO;\n\n...\n\nvar path = //your current filePath\nvar outputPath = //the directory where you want your (.txt) file\n\n\nFile.Copy(path,outputPath);\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/19933', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2260/']