refactor the file exracting code

I implemented the tips from the previous commit
regarding refactoring the duplicate code in the
BudgetSettingsActivity and added an onclick listener to
currencyEditButton that somehow got deleted in the previous
commit

-add onclick listener for a currency chooser button
-refactor the code for extracting info from txt files
into a single function