public static void generateGradeCSV(String courseID, String actName, String path, String name)
    {
    	ResultSet res = GradeAccess.accessGrades(courseID, actName);
    	String s = "";
    	int x = 0;
    	try {
    		while(res.next()) {
    			if(x == res.getInt(1)) {
    				s += "," + res.getFloat(2);
    			} else {
    				if(x == 0)
    					s += res.getInt(1) + "," + res.getFloat(2);
    				else
    					s += "\n" + res.getInt(1) + "," + res.getFloat(2);
    			}
    			x = res.getInt(1);
    		}
    	} catch (SQLException e) {
    		e.printStackTrace();
    	}
    	
    	try {
			PrintWriter out = new PrintWriter(path + "/" + name);
			out.write(s);
			out.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
    }