public String pobierzTekstZPliku(String plik){
		String s = "";
		Scanner sc = null;


		try{
			StringBuilder sb = new StringBuilder();
			sc = new Scanner(new File(plik));
			while(sc.hasNextLine()){
				sb.append(sc.nextLine()+ " ");
			}
			
			s = sb.toString();
		} catch (Exception e){
			e.printStackTrace();
		} finally{
			if (sc!=null)sc.close();
		}
		return s;
	}