Chromium Code Reviews| Index: runtime/bin/file.dart |
| =================================================================== |
| --- runtime/bin/file.dart (revision 3943) |
| +++ runtime/bin/file.dart (working copy) |
| @@ -106,7 +106,7 @@ |
| * file is created. |
| * |
| * FileMode.APPEND: same as FileMode.WRITE except that the file is |
| - * not truncated. |
| + * not truncated and that the position is set to the end of the file. |
|
Mads Ager (google)
2012/02/07 08:37:31
that the -> the
ricow1
2012/02/07 09:16:22
Done.
|
| * |
| * By default mode is FileMode.READ. |
| */ |
| @@ -129,12 +129,22 @@ |
| * input stream must be closed when no longer used to free up |
| * system resources. |
| */ |
| - InputStream openInputStream(); |
| + InputStream openInputStream([FileMode mode]); |
|
Mads Ager (google)
2012/02/07 08:37:31
?
You want this to go on the openOutputStream, ri
ricow1
2012/02/07 09:16:22
Done.
|
| /** |
| * Creates a new independent output stream for the file. The file |
| * output stream must be closed when no longer used to free up |
| * system resources. |
| + * |
| + * An output stream can be opened in two modes: |
| + * |
| + * FileMode.WRITE: create the stream and truncate the the underlying |
|
Mads Ager (google)
2012/02/07 08:37:31
the the -> the
ricow1
2012/02/07 09:16:22
Done.
|
| + * file to length zero. |
| + * |
| + * FileMode.APPEND: create the stream and set the position at the end of |
|
Mads Ager (google)
2012/02/07 08:37:31
at the -> to the
ricow1
2012/02/07 09:16:22
Done.
|
| + * the underlying file. |
| + * |
| + * By default the mode is FileMode.WRITE. |
| */ |
| OutputStream openOutputStream(); |