falco
Member
Can someone explain why I am getting the following build errors?
No overload for method File takes 1 arguments
System.IO.File does not contain a definition for CopyTo
Code:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
File adofile = new File("C:\\dotNET Book\\Ch8_ADO.doc");
adofile.CopyTo("C:\\dotNETBook\\Sample\\Ch8_Backup.doc");
No overload for method File takes 1 arguments
System.IO.File does not contain a definition for CopyTo
Code:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
File adofile = new File("C:\\dotNET Book\\Ch8_ADO.doc");
adofile.CopyTo("C:\\dotNETBook\\Sample\\Ch8_Backup.doc");