import std.stdio; import std.file;
void main() { string s = readText("s.txt"); writeln('[', s, ']'); File("s.txt", "w").write(s); }notepad.exe opens alright, (if you don't save as File(.., "wb")). But I'm having trouble with some others like GtkD. Also writeln always does it right.