The difficulty of my problem lies in the "specific position". I want to write a script that first test if some specific string existed in the code (of a file), then I include a header file at the end of all the other includes.
E.g. If I find SomeString
in this file, then after
#include <oldfile1.h>
#include "oldfile2.h"
insert #include "someheaderfile.h"
I am looking for an elegant solution if possible.