Lecture 24
11
Copy
•Classic example dealing with file contents
•Write Windows command line copy in Java:
•> java Copy sourcefile targetfile
•main in Copy.java (pseudocode):
–open sourcefile for reading
–open targetfile for writing
–while (get stuff from sourcefile)                                   write stuff to targetfile
–close both files