Edit txt file with new value

It looks like this is a very similar request to what you are trying to do:

Where you can point to the file, and then use the action script to find the area of the file you want to modify and then append it.