I want to add a string to a file after a specific string for example
"abcde",
Which means I need to open the file find the string "abcde" and then add my
string just after.
How do I do it?
Here's the simplest way:
1) Read the entire file to memory.
2) Search for the string.
3) Insert a new string after the found string.
4) Write to the file.