title: Check if line exists in a file
body: <p>The problem is that my app tries to add a line to an existing xml file in <code>/system/csc</code>.</p>
  
  <p>I need a function to check if inside the file there is X line and if it is in there the line shouldn't be added also it has to put the line before another line that is present in the file.</p>