Index: sdk/lib/io/file.dart |
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart |
index 20110af9ec064796cabd265f41b49323b484cf0d..306fe0fe918aac6104c286f1de764f5af2ffbc24 100644 |
--- a/sdk/lib/io/file.dart |
+++ b/sdk/lib/io/file.dart |
@@ -186,8 +186,14 @@ abstract class File extends FileSystemEntity { |
* In order to make sure that system resources are freed, the stream |
* must be read to completion or the subscription on the stream must |
* be cancelled. |
+ * |
+ * If [start] is present, the file will be read from byte-offset [start]. |
Søren Gjesse
2013/05/21 09:06:04
add (index 0) after beginning.
Anders Johnsen
2013/05/21 09:22:11
Done.
|
+ * Otherwise from the beginning. |
+ * |
+ * If [end] is present, only up to byte-index [end] will be read. Otherwise, |
+ * until end of file. |
*/ |
- Stream<List<int>> openRead(); |
+ Stream<List<int>> openRead([int start, int end]); |
/** |
* Creates a new independent [IOSink] for the file. The |