hi would like to set the nick to be a word picked up randomly from a text fille i have of thousands of name i dont know how to it heres the code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluorineFx;
using FluorineFx.Messaging.Adapter;
using FluorineFx.Messaging.Api.Service;
using FluorineFx.Net;
using System.Threading;
using System.IO;
namespace TinyChat_SPam
{
class Client : IPendingServiceCallback
{
private static Random rand = new Random();
static string[] colors = { "#1965b6", "#32a5d9", "#7db257", "#a78901", "#9d5bb5", "#5c1a7a", "#c53332", "#821615", "#a08f23", "#487d21", "#c356a3" };
static int colorIndex = 0;
public NetConnection mNetConnection;
private Thread thdHandler;
public string roomName;
public bool FlagDone = false;
public const string MsgPath = "message.txt";
public Client()
{
}
public Client(string roomName)
{
mNetConnection = new NetConnection();
mNetConnection.OnConnect += OnConnect;
mNetConnection.OnDisconnect += OnDisconnect;
this.roomName = roomName;
}
public void SetHandler(Thread thdHandler)
{
this.thdHandler = thdHandler;
}