Hello guys!

I wan't to know how to make this:

http://img254.imageshack.us/img254/2629/howt.jpg

I made a code that creates a new txt file and "Adds a New Line at the Bottom", but i don't know how to make a code that adds a new line in a specific area, like that in the image above, i wan't to make a php code that adds a new line in a specific area inside an existing php file, through a <form></form> code...

Please help me guys!
Thanks in advance!

You should be able to open a file and read it with standard "fopen" and "fread" commands.

You can then use a while loop to read every line in the line, and store each line into an array. Then, find the array element which contains the line which comes directly BEFORE the line you wish to add. Then, add a new array element after that one, containing the line you wish to add. Then, open the same file (no append) and re-write the file with the new line.