Play audio slide show -- Keyboard shortcut: 'x'  Lecture overview -- Keyboard shortcut: 'u'  Previous page: Tegn streams -- Keyboard shortcut: 'p'  Next page: InputStream og OutputStream hierarkierne -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home  Play sound for this slide -- Keyboard shortcut: 'y'    Collections og streams - slide 31 : 35

Eksempel på anvendelse af klasserne FileReader og FileWriter 

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();
    }
}