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

Unified Diff: frog/file_system_vm.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 | « no previous file | frog/leg/scanner/vm_scanner_bench.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/file_system_vm.dart
diff --git a/frog/file_system_vm.dart b/frog/file_system_vm.dart
index 306fcd3214f137d12e7a0eb7f350ad45f09ebb47..3471fb0cb14ff32c3035b43310c5bbbdfea8ae26 100644
--- a/frog/file_system_vm.dart
+++ b/frog/file_system_vm.dart
@@ -15,8 +15,7 @@ class VMFileSystem implements FileSystem {
}
String readAll(String filename) {
- var file = new File(filename);
- file.openSync();
+ var file = (new File(filename)).openSync();
var length = file.lengthSync();
var buffer = new List<int>(length);
var bytes = file.readListSync(buffer, 0, length);
« no previous file with comments | « no previous file | frog/leg/scanner/vm_scanner_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698