Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 32afe9af60aa2d87ab0c279f073360dcc7f08c52..a6ddbd6742f6f0c0eac079be5439b5057811a53d 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -557,7 +557,7 @@ class _File extends _FileBase implements File { |
{FileMode mode: FileMode.WRITE}) { |
try { |
IOSink<File> sink = openWrite(mode: mode); |
- sink.writeBytes(bytes); |
+ sink.add(bytes); |
sink.close(); |
return sink.done.then((_) => this);; |
} catch (e) { |