Code example for FileReader

Methods: close, read

0
	 public void onResume() { 
			super.onResume(); 
			 
			FileReader fReader;
	          try{ 
	        	  fReader = new FileReader("data\\data\\edu.aljosa.Bomberman.android\\files\\PlayerName.txt");
	        	  char[] ime = new char[30];
	        	  fReader.read(ime);
	        	   
	        	  app.Ime=ime.toString();
	        	   
	        	  fReader.close();
	        	  //Toast toast1 = Toast.makeText(getApplicationContext(), "  " + ime.toString(), Toast.LENGTH_SHORT); 
				  //toast1.show(); 
	           }catch(Exception e){
	                    e.printStackTrace();
	           } 
	            
	            
	 } 
	@Override