title: Java - Base64 string in and out of a text
body: <p>I need to write  string  containing base64 encoded text to a text file and then later read that string back from the text file to a string variable.</p>
  
  <p>How can i do it so that there is no data loss due to encoding issues?</p>