Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public static void Execute()
  2. {
  3.  
  4. using (var sr = new StreamReader(@"C:UsersPsuedoDocumentsVisual Studio 2015Projectsconverted_docx.txt"))
  5.  
  6. {
  7. using (var sw = new StreamWriter(@"C:UsersPsuedoDocumentsVisual Studio 2015Projectsdocx_2.txt"))
  8. {
  9. string line = "";
  10. while ((line = sr.ReadLine()) != null)
  11. {
  12. var cols = line.Split('t');
  13. sw.WriteLine(cols[0] + 't' + cols[1] + 't' + cols[2] + 't' + cols[4] + 't' + cols[3]);
  14. }
  15.  
  16.  
  17.  
  18. }
  19.  
  20.  
  21.  
  22. }
  23.  
  24.  
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement