package controllers;

import play.mvc.Controller;
import play.mvc.*;
import java.io.*; 
import java.util.*;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import org.apache.commons.io.FileUtils;

public class Instructions extends Controller{

    public static void index()  {
        render();
    }	
	public static void uploadTextFile(String title, File textFile) throws Exception {
		try {		
		System.out.println("archivo completo: " + (String) FileUtils.readLines(textFile));
		}
		catch (IOException e) {
		       e.printStackTrace();
	   	}
	index();
	}	
}

package controllers;

import play.mvc.Controller;
import play.mvc.*;
import java.io.*; 
import java.util.*;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import org.apache.commons.io.FileUtils;

public class Instructions extends Controller{

    public static void index()  {
        render();
    }	
	public static void uploadTextFile(String title, File textFile) throws Exception {
	String Content = "";
		try {		
		List<String> LIST = FileUtils.readLines(textFile);
		int k = LIST.size()
		int j = 0;
			while(j<k){
				Content=Content + List.get(j);j++;			
			}
		}
		catch (IOException e) {
		       e.printStackTrace();
	   	}
	System.out.println("Archivo cargado: " + Content);
	index();
	}	
}

make it better