Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tango.io.Stdout;
- import tango.io.device.File;
- import tango.io.stream.Format;
- import tango.io.stream.TextFile;
- void main()
- {
- char[][] arraystring = new char[][](2);
- arraystring[0] = "hello";
- arraystring[1] = "world";
- auto fileContent = new TextFileOutput("text.d.txt", File.WriteCreate);
- foreach(line; arraystring) {
- fileContent(line).newline;
- }
- fileContent.flush;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement