public void createChannel(String name, String topic){
        // check if there is a channel already with that name
        // may check that when the user asks to join the channel
        for (int i=0;i<channelList.size();i++){
            if (channelList.get(i).getChannelName() == null ? name == null : channelList.get(i).getChannelName().equals(name)){
                return;
            }
        }
        
        // create files
        FileIO channel = new FileIO("IRChat" + seperator + "conf", name + ".conf", false);
        channel.writeLn("NAME: " + name);
        channel.writeLn("TOPIC: " + topic);
        channel.writeLn("ADMINS: ");
        channel.close();
        channel = new FileIO("IRChat" + seperator + "logs", name + ".log", false);
        channel.close();
        
        // add to channel array
        channelList.add(new Channel(name, this));
        
    }