Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Unified Diff: samples/buildhook1/build.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | samples/buildhook2/build.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/buildhook1/build.dart
diff --git a/samples/buildhook1/build.dart b/samples/buildhook1/build.dart
index ca25ad5eb01cce6fbe53ab369842c9589cced784..5c912265bcf7eb9bfbc06c59895b139acd60248a 100644
--- a/samples/buildhook1/build.dart
+++ b/samples/buildhook1/build.dart
@@ -25,8 +25,8 @@ void _processFile(String file) {
String contents = new File(file).readAsStringSync();
if (contents != null) {
- OutputStream out = new File("${file}bar").openOutputStream();
- out.writeString("// processed from ${file}:\n${contents}");
+ var out = new File("${file}bar").openWrite();
+ out.addString("// processed from ${file}:\n${contents}");
out.close();
}
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | samples/buildhook2/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698