anchor.diff:          Expect.equals(42, bytes_read);
           file.closeHandler = () {
             // Write the contents of the file just read into another file.
  -          String outFilenameBase =
  -              getFilename("tests/vm/data/fixed_length_file");
  -          String outFilename = outFilenameBase + "_out_read_write";
  +          String outFilename = tempDirectory.path + "/out_read_write";
             file = new File(outFilename);
             file.errorHandler = (s) {
               Expect.fail("No errors expected");
  
positive.code: 
  
  class FileTest {
    // Test for file read functionality.
    static int testReadStream() {
      // Read a file and check part of it's contents.
  
negative.code:   static testMain() {
      Expect.equals(1, testRead());
      Expect.equals(1, testReadSync());
      Expect.equals(1, testReadStream());
      Expect.equals(1, testLength());
      Expect.equals(1, testLengthSync());
      Expect.equals(1, testPosition());
      Expect.equals(1, testPositionSync());
      Expect.equals(1, testMixedSyncAndAsync());
      asyncTestStarted();
      createTempDirectory(() {
          Expect.equals(1, testReadWrite());
          Expect.equals(1, testReadWriteSync());
          Expect.equals(1, testReadWriteStream());
          Expect.equals(1, testTruncate());
          Expect.equals(1, testTruncateSync());
          Expect.equals(1, testCloseException());
          Expect.equals(1, testCloseExceptionStream());
          Expect.equals(1, testBufferOutOfBoundsException());
          asyncTestDone();
        });
    }
  }
  
  