Appending text (once!) to a file :(

Hi !
Hay i really need help! Im appending text to a file but each time i run the brogram the damn thing will “reappend” >:(
I know what i must do “Search for a string & if its there dont reappend the text!” can you PLZ show me an example of how to go about this, 1 that works too :stuck_out_tongue:

thnx :wink:

Welcome to elysiun!
It would be a lot easier if i could understand what you’r talking about.

Im appending text to a file but each time i run the brogram the damn thing will “reappend”

you’r appending text to what?

“Search for a string & if its there dont reappend the text!”

So where would you do that?

Check if the string “HELLO” exist in “file.txt”
If it does not exist…
Append text “HELLO” To the “file.txt”

e.g, i dont want to (reappend)

sorry for that spelling error.

find(s,sub[,start[,end]])

Stefano