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

Unified Diff: utils/pub/io.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 | « utils/apidoc/mdn/util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 3296bb855f9562982e1b77a591362639a6d155c8..793c7263eff1cd6c4b5da61aed39b695e8d11a6f 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -118,7 +118,7 @@ Future<bool> fileExists(file) {
* a [File].
*/
Future<String> readTextFile(file) {
- return new File(_getPath(file)).readAsText(Encoding.UTF_8);
+ return new File(_getPath(file)).readAsString(Encoding.UTF_8);
}
/**
« no previous file with comments | « utils/apidoc/mdn/util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698