public Curso leer() throws IOException, SQLException {
String lineaCurso = lector.readLine();
if (lineaCurso==null)
throw new IOException();
String [] datosCurso = lineaCurso.split(",");
Profesor profesor = ProfesorBD.buscarProfesor(datosCurso[7]);
return new Curso (-1,datosCurso[0],datosCurso[1],datosCurso[2],Integer.parseInt(datosCurso[3]),
Integer.parseInt(datosCurso[4]),Integer.parseInt(datosCurso[5]),Integer.parseInt(datosCurso[6]),profesor);
}