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

Unified Diff: samples/buildhook1/build.dart

Issue 11412033: Rename File.readAsText to File.readAsString. There is no Text type in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « pkg/intl/lib/src/file_data_reader.dart ('k') | samples/buildhook1/test.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 545378bc0b1647492b9ab400d5ca28e6f31fe157..ca25ad5eb01cce6fbe53ab369842c9589cced784 100644
--- a/samples/buildhook1/build.dart
+++ b/samples/buildhook1/build.dart
@@ -22,7 +22,7 @@ void main() {
}
void _processFile(String file) {
- String contents = new File(file).readAsTextSync();
+ String contents = new File(file).readAsStringSync();
if (contents != null) {
OutputStream out = new File("${file}bar").openOutputStream();
« no previous file with comments | « pkg/intl/lib/src/file_data_reader.dart ('k') | samples/buildhook1/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698