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

Unified Diff: utils/markdown/markdown.dart

Issue 8883017: Split File into File and RandomAccessFile. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years 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 | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/markdown/markdown.dart
diff --git a/utils/markdown/markdown.dart b/utils/markdown/markdown.dart
index 8d818baf2c6a2f1e43767057d4434ca2b91b2cbc..bf1d691b2fe09239a59d31ab6d052d047736f474 100644
--- a/utils/markdown/markdown.dart
+++ b/utils/markdown/markdown.dart
@@ -30,8 +30,7 @@ main() {
}
String readFile(String path) {
- final file = new File(path);
- file.openSync();
+ final file = (new File(path)).openSync();
final length = file.lengthSync();
final buffer = new List<int>(length);
final bytes = file.readListSync(buffer, 0, length);
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698