Implemented SharedPrefs using FileInputStream and FileOutputStream.