SHARE
TWEET

Untitled

a guest Aug 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. System.IO.Stream        stream;
  2. TextStreamIo            io;
  3. System.IO.StreamReader  reader;
  4. XML                     fileContent;
  5.  
  6. io = TextStreamIo::constructForWrite();
  7. io.writeExp(str2con(<String value/record>)));
  8.  
  9. stream = io.getStream();
  10. stream.Position = 0;
  11. reader = new System.IO.StreamReader(stream);
  12. filecontent = reader.ReadToEnd();
  13.  
  14. //save file on local folder
  15. //File::SendStringAsFileToUser(str content, str fileName, System.Text.Encoding encoding = System.Text.Encoding::get_UTF8(), ClassName fileUploadStrategyClassName = classstr(FileUploadTemporaryStorageStrategy))
  16. File::SendStringAsFileToUser(fileContent, 'MyTextFile');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top