void splitLines(int length,String line,BufferedWriter writer) throws IOException
  {
  	int index = 0;
  	String temporal = "";
  	if (line.length() > length) {
  		
  		index = line.indexOf(" ",length);
  		if(index > 0){
  			temporal = line.substring(0,index);
  		} else {
  			temporal = line.substring(0,length);
  			index = length;
  		}

  		writer.write(temporal);
  		writer.newLine();

  		splitLines( length,line.substring(index+1,line.length()),writer );

  	} else {
  		writer.write(line);
  		writer.newLine();
  		return;
  	}

  }