Yes, you can do it, but you'll need data manipulation (no function does this natively).
If the file is relatively small (< 1 Mb), you can:
- load the entire file into memory (use the file_get_contents() function),
- add the new row at the line you want
- delete the initial file (unlink() function)
- create a new file with the same name (file_put_contents() function)
Good luck!
Bookmarks