title: ANDROID:How to format text that has to be saved in textfile
body: <p>I have an app in which I can choose data from a database and then I show the result in a TableView. Next thing I want to do is save the chosen data (currently shown in the TableView) into a textfile, so it can copied onto a PC and printed out on to paper. What I'm trying to achieve is equal spaces between each column. I'm using something like this to save text to a file:</p>
  
  <pre><code>out.write("\n "+name+" \t"+amount+" \t"+price);
  </code></pre>
  
  <p>But after opening the file in a text editor it doesn't look good. Is this the right method to do it? If not what is?</p>