public void splitFilesinFolder(String inputFolder, int start, int end) throws IOException {
		File folder = new File(inputFolder);
		File[] listFiles = folder.listFiles();
		for (File inputFile : listFiles) {
			BufferedReader in = new BufferedReader(new FileReader(inputFile));
			String nextLine = in.readLine();
			
			StringBuffer toWrite = new StringBuffer();
			int sentenceCounter = 0;
			PrintWriter out;
			
			while(nextLine!= null){
				if(nextLine.startsWith("<")){
					if(nextLine.trim().equals("<s>")){
						sentenceCounter++;
						if(sentenceCounter>start)
							toWrite.append(nextLine + '\n');
						//System.out.println(sentenceCounter);
					}
					else{
						if(sentenceCounter>start){
							if(nextLine.trim().equals("</s>")){
								toWrite.append(nextLine + "\n\n");
								if(sentenceCounter>=end){
									//toWrite.append(nextLine + "\n\n");
									//System.out.println("File: " + fileCounter);
									System.out.println("sentences: " + sentenceCounter);
									System.out.println("Buffer: " + toWrite.length());
									System.out.println();
									File destFile = new File(destinationDir +"/"+ inputFile.getName());
									out = new PrintWriter(new FileWriter(destFile));
									out.println(toWrite.toString());
									out.close();
									toWrite = new StringBuffer();
									sentenceCounter = 0;
									
								}						
							}
						}	
					}
				}
				else{
					if(sentenceCounter>start)
						toWrite.append(nextLine + '\n');
				}
				nextLine = in.readLine();			
			}		
			in.close();	
		}			
	}