Android - entry nember
<p>how would i go about adding an entry number at the start of a saved line of text to a .txt file. eg.</p>

<ul>
<li>01, entry one</li>
<li>02, entry two</li>
<li>03, entry three</li>
</ul>

<p>and so on</p>

<p>here is my code to write to the file</p>

<pre><code>public void onClick(View v) {try {
            BufferedWriter out = new BufferedWriter(new       FileWriter("/sdcard/input_data.txt", true));
            out.write(txtData.getText() + "," + dateFormat.format(new Date()));
            out.close();
</code></pre>
