Java noob question - how to store a string to a new text file
<p>Here is my scenario:</p>

<p>Selenium grabbed some text on the html page and convert it to a string (String store_txt = selenium.getText("text");) - the text is dynamically generated.</p>

<p>Now I want to store this string into a new text file locally every time I run this test, should I use FileWriter? Or is it as simple as writing a System.out.println("string");?</p>

<p>Do I have to write this as a class or can I write a method instead?</p>

<p>Thanks in advance!!</p>
