daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 using (FileStream fs = new FileStream("test.htm", FileMode.Create))
  2.                 {
  3.                     using (StreamWriter w = new StreamWriter(fs, Encoding.UTF8))
  4.                     {
  5.                         w.WriteLine("<head>");
  6.                         w.WriteLine("<title>" + conversion.getSubjectField() + " " + folderName + " - Converted by Something by VIALUTIONS</title>");
  7.                         w.WriteLine("<style type=\"text/css\">");
  8.                         w.WriteLine(".contentType { padding:1em; font-family: Segoe UI Light; font-size: 14pt; }");
  9.                         w.WriteLine(".content { font-family: Segoe UI; font-size: 12pt;");
  10.                         w.WriteLine("</style>");
  11.              
  12.                         //From:
  13.                         w.WriteLine("<div><span class=\"contentType\">From:</span>");
  14.                         w.WriteLine("<span class=\"content\">" + conversion.getFromField() + "</span>");
  15.                        
  16.                         //To:
  17.                         w.WriteLine("<div><span class=\"contentType\">To:</span>");
  18.                         w.WriteLine("<span class=\"content\">" + conversion.getToField() + "</span>");
  19.                         //Subject:
  20.                         w.WriteLine("<div><span class=\"contentType\">Subject:</span>");
  21.                         w.WriteLine("<span class=\"content\">" + conversion.getSubjectField() + "</span>");
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