Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using System.Diagnostics;
- using System.IO;
- public class Form1
- {
- OpenFileDialog OFDWTFlolPornoFTW = new OpenFileDialog();
- private void Button1_Click(System.Object sender, System.EventArgs e)
- {
- try {
- OFDWTFlolPornoFTW.ShowDialog();
- TextBox1.Text = OFDWTFlolPornoFTW.FileName;
- System.IO.StreamReader sReader = new System.IO.StreamReader(OFDWTFlolPornoFTW.FileName);
- RichTextBox1.AppendText(sReader.ReadToEnd());
- string input = RichTextBox1.Text;
- string output = "";
- char CharStr = new char();
- foreach (char CharStr_loopVariable in input) {
- CharStr = CharStr_loopVariable;
- output = CharStr + output;
- }
- RichTextBox1.Text = output;
- } catch (Exception ex) {
- }
- }
- private void Button2_Click(System.Object sender, System.EventArgs e)
- {
- try {
- if (File.Exists(Application.StartupPath + "\\Decoded.txt")) {
- File.Delete(Application.StartupPath + "\\Decoded.txt");
- }
- StreamWriter FileWriter = null;
- FileWriter = new StreamWriter(Application.StartupPath + "\\Decoded.txt", false);
- FileWriter.Write(RichTextBox1.Text);
- FileWriter.Close();
- Interaction.MsgBox("Decoded");
- } catch (Exception ex) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement