Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. using Microsoft.VisualBasic;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Diagnostics;
  7. using System.IO;
  8. public class Form1
  9. {
  10. OpenFileDialog OFDWTFlolPornoFTW = new OpenFileDialog();
  11. private void Button1_Click(System.Object sender, System.EventArgs e)
  12. {
  13. try {
  14. OFDWTFlolPornoFTW.ShowDialog();
  15. TextBox1.Text = OFDWTFlolPornoFTW.FileName;
  16. System.IO.StreamReader sReader = new System.IO.StreamReader(OFDWTFlolPornoFTW.FileName);
  17. RichTextBox1.AppendText(sReader.ReadToEnd());
  18. string input = RichTextBox1.Text;
  19. string output = "";
  20. char CharStr = new char();
  21. foreach (char CharStr_loopVariable in input) {
  22. CharStr = CharStr_loopVariable;
  23. output = CharStr + output;
  24. }
  25. RichTextBox1.Text = output;
  26. } catch (Exception ex) {
  27. }
  28. }
  29.  
  30. private void Button2_Click(System.Object sender, System.EventArgs e)
  31. {
  32. try {
  33. if (File.Exists(Application.StartupPath + "\\Decoded.txt")) {
  34. File.Delete(Application.StartupPath + "\\Decoded.txt");
  35. }
  36. StreamWriter FileWriter = null;
  37. FileWriter = new StreamWriter(Application.StartupPath + "\\Decoded.txt", false);
  38. FileWriter.Write(RichTextBox1.Text);
  39. FileWriter.Close();
  40. Interaction.MsgBox("Decoded");
  41. } catch (Exception ex) {
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement