<console app>
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using commandsSSP;
namespace consoleSSP
{
class Program
{
static void Main(string[] args)
{
string myCommand;
do
{
myCommand = Console.ReadLine();
switch (myCommand)
{
case "quit":
File.Delete("temp.txt");
System.Environment.Exit(1);
break;
default:
command Com = new command();
string[] response = Com.execCommands(myCommand,
"console");
int x = 0;
while (response[x] != null)
{
Console.Write("\n " + response[x] +
"\n");
x++;
}
break;
}
} while (myCommand != "CrashAndBurn");
}
}
}
<class library>
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.IO;
namespace commandsSSP
{
public class command
{
string[] _Args = new string[100];
int ArgCount;
string[] _Return = new string[100000];
string _Command;
string[] _ReturnFinal;
public string[] execCommands(string commandString, string
appType)
{
string[] temp;
temp = commandString.Split(' ');
_Command = temp[0];
switch (_Command)
{
case "load":
_Args = temp[1].Split('|');
ArgCount = temp[1].Split('|').Length;
consoleLoad(_Args, true);
break;
default:
_Return[0] = "Invalid Command";
break;
}
return _ReturnFinal = _Return;
}
public void consoleLoad(string[] _Args, bool served)
{
if (_Args[0] == "clipboard")
{
StreamWriter sw = new StreamWriter("temp.txt");
sw.Write(Clipboard.GetText() ?? "");
sw.Close();
_Return[0] = "Contents Loaded";
}
}
}
}
I hope that is enough information