Announcements
System.IO.Stream stream;
TextStreamIo io;
System.IO.StreamReader reader;
utcDateTime dateTime;
Str fileContent;
dateTime = DateTimeUtil::getSystemDateTime();
io = TextStreamIo::constructForWrite();
io.writeExp([dateTime]);
stream = io.getStream();
stream.Position = 0;
reader = new System.IO.StreamReader(stream);
filecontent = reader.ReadToEnd();
File::SendStringAsFileToUser(fileContent, 'MyTextFile.txt');
info(strfmt("%1", dateTime));
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,734 Super User 2024 Season 2
Martin Dráb 229,021 Most Valuable Professional
nmaenpaa 101,150