Hi Jon,
It might be possible that you are starting an async IO operation and
your program exits before it gets done. The following code should
work, because it awaits for the writeAsString() to be completed:
import 'dart:io';
main() async {
await new File('output.txt').writeAsString('content');
}
This article has a few more examples about Dart's IO uses:
https://www.dartlang.org/articles/dart-vm/io
Hope it helps.
Istvan
> --
> For other discussions, see
https://groups.google.com/a/dartlang.org/
>
> For HOWTO questions, visit
http://stackoverflow.com/tags/dart
>
> To file a bug report or feature request, go to
http://www.dartbug.com/new
> ---
> You received this message because you are subscribed to the Google Groups
> "Dart Misc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
misc+uns...@dartlang.org.