Error in Java : java.io.FileNotFoundException: C:\Users\FSSD\Desktop\My Test (Access is denied)
问题 I have a java code for copy file from one folder to another folder. I used the following code (I used Windows 7 operating system), CopyingFolder.java import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; public class CopyingFolder { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub File infile=new File("C:\\Users\\FSSD\\Desktop\\My Test"); File