protected void writeToFile(String fileName, String loggable)
	{
		String finalPath = pluginAbsolutePath + "/" + fileName;
		
		//Attempt to create file if it doesn't exist.
		File f = new File(finalPath);
		
		if (!f.exists())
		{
			try {
				f.createNewFile();
				f.setWritable(true);
			} catch (IOException e1) {
				e1.printStackTrace();
				return;
			}
		}
		
		//Create a writer stream.
		FileWriter fstream;
		
		try {
			fstream = new FileWriter(finalPath, true);
		} catch (IOException e) 
		{
			e.printStackTrace();
			return;
		}
		
		//Create a buffered out stream.
		BufferedWriter out = new BufferedWriter(fstream);
		
		try {
			out.append(loggable);
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}