Play audio slide show -- Keyboard shortcut: 'x'  Back to slide -- Keyboard shortcut: 'u'        next  Play sound for this slide -- Keyboard shortcut: 'y'  Copy.java - Et program uden fejlhåndtering som kopierer én fil over på en anden.Lecture 10 - slide 2 : 26
Program 1

import java.io.*;

public class Copy {
    public static void main(String[] args) throws IOException {

        FileReader in = new FileReader(new File(args[0]));
        FileWriter out = new FileWriter(new File(args[1]));
        int c;

        do{
          c = in.read();
          if(c != -1) out.write(c);
        } while (c != -1);  

        in.close();
        out.close();
    }
}