SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to append to the file, open it with 'a'. If you want to seek through the file to find the place where you should insert the line, use 'r+'. (docs)
'a'
'r+'