write strings to the bottom line of an textfile
<p>i want to write strings to a textfile, everytime to the bottom of the file. And then if im searching for a certain string in the textfile and finds it, i want to replace that line with another. </p>

<p>I'm thinking this: Count rows in textfile and add +1 and then write the string i want to write to that index. But is it even possible to write to a certain linenumber in a textfile? </p>

<p>And how about to update a certain row to another string ?</p>

<p>thanks!</p>
