import java.io.*;

public class Main {

  public static void main (String[] args) throws IOException {
    Tape t = new Tape(30);
    t.record("Goofy", 5);
    t.record("Pluto", 10);
    t.record("Donald", 6);
    t.record("Mickey", 6);

    TapeClient.writeListing(t, "cartoon.txt");
  }

}


/*
  After this program is run, the file "cartoon.txt" should contain:
  0: Goofy 5
  1: Pluto 10
  2: Donald 6
  3: Mickey 6
  Total length: 27
  Residual capacity: 3
*/
