File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #### 5.0.10
2+
3+ * Added example
4+
15#### 5.0.9
26
37* Fix lints for project health
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2+ // for details. All rights reserved. Use of this source code is governed by a
3+ // BSD-style license that can be found in the LICENSE file.
4+
5+ import 'package:file/file.dart' ;
6+ import 'package:file/memory.dart' ;
7+
8+ Future <void > main () async {
9+ final FileSystem fs = MemoryFileSystem ();
10+ final Directory tmp = await fs.systemTempDirectory.createTemp ('example_' );
11+ final File outputFile = tmp.childFile ('output' );
12+ await outputFile.writeAsString ('Hello world!' );
13+ print (outputFile.readAsStringSync ());
14+ }
Original file line number Diff line number Diff line change 11name : file
2- version : 5.0.9
2+ version : 5.0.10
33authors :
44- Matan Lurey <matanl@google.com>
55- Yegor Jbanov <yjbanov@google.com>
You can’t perform that action at this time.
0 commit comments