*/
	public void loadChannels(final String filename) {
		File f;
		FileReader fr;
		BufferedReader br;
		
		try {
			f = new File(filename);
			fr = new FileReader(f);
			br = new BufferedReader(fr);
			
			String line = br.readLine();

			while (line != null) {
				debug("LINE: \'" + line + "\'");
				
				if( line.startsWith("#") ) continue; // skip commented out lines
				
				String[] channelData = line.split(",");
				
				if( channelData.length == 3 ) {
					final String channelName = channelData[0].toLowerCase();
					final String shortName = channelData[1].toLowerCase();
					final int channel_perm = Utils.toInt(channelData[2], Constants.USER);
					
					final ChatChannel channel = chan.makeChannel(channelName);
					
					if( channel != null ) {
						channel.setShortName(shortName);

						channel.setRestrict(channel_perm);

						channel.setChanColor("magenta");
						channel.setTextColor("green");
					}
					else {
						debug("Channel is NULL!");
					}

					debug("Channel Added: " + channelName);
				}
				else {
					debug("Invalid Channel Data!");
				}
				
				line = br.readLine();
			}
			
			br.close();
			fr.close();
		}
		catch(final NullPointerException npe) {
			System.out.println("--- Stack Trace ---");
			npe.printStackTrace();
		}
		catch(final FileNotFoundException fnfe) {
			System.out.println("--- Stack Trace ---");
			fnfe.printStackTrace();
		}
		catch(final IOException ioe) {
			System.out.println("--- Stack Trace ---");
			ioe.printStackTrace();
		}
	}