Now using built in C commands rather than using system(). interfaces.txt now removes itself after the ocmmand is run.