I am using WebStorm on Windows and I have simple command-line dart app:
import 'dart:io';
main(List<String> arguments) {
File testFile = new File("test.txt");
testFile.writeAsStringSync("AAA\nBBBBB\rCCCCC");
}
Program executes successfully, however the .txt file opened via Notepad appears to contain
AAABBBBBCCCCC
however if I try to past the content to other environments (WebStorm, StackOverflow question textarea), the text appears as
AAA
BBBBB
CCCCC
I feel like I am missing something basic ... any idea?