title: Delete all text in a file between two strings without importing any modules
body: <p>Due to restrictions I can't use any import modules like <code>re</code>, <code>sys</code> or <code>os</code> etc. 
  Anything that I have to import at the beginning is out. This has made my life hell.
  Here is what I've got so far:</p>
  
  <pre><code>#I CANT USE ANY IMPORT MODULES DUE TO RESTRICTIONS ON THE MACHINE THIS RUNS ON :(
  #
  # These Are the Variables for our file path and the start and ending points of what I want to delete.
  #----------------------------------------------------------------------------------------------------
  DelStart = "//StartBB"
  DelEnd = "//EndBB"
  FilePath = "C:\\Users\\kenne_000\\Desktop\\New folder\\test.sqf"
  #----------------------------------------------------------------------------------------------------
  #Opens the FilePath in Read set this command to f
  f = open(FilePath).read()
  
  
  #Sets value of out to create file in Write mode called "Filepath".out
  Out = open(FilePath + '.out', 'w')
  
  
  #assigns fL as open FilePath and split it up line by line for indexing
  fL = f.split('/n')
  
  
  #Assings LN as index our file and find the lines DelStart and DelEnd
  LN = fL.index(DelStart,DelEnd)
  
  #This Gives an error 
  #&gt;&gt;&gt; LN = fL.index(DelStart,DelEnd)
  #Traceback (most recent call last):
  # File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  #TypeError: slice indices must be integers or None or have an __index__ method
  
  
  #text is replacing everything between our start and endpoints with nothing ""
  # STILL NEED THIS SECTION NO CLUE HOW TO DO THIS
  
  
  #Writes our new file Minus our designated start and end points
  out.write(text)
  
  
  #Closes Our New File
  out.close()
  
  
  #Ends Script
  Script.close()
  </code></pre>
  
  <p>I was able to create a script that wrote all of the text and inserted the markers, which are individual for each set of text that gets inserted, but I no longer have any clue what to do when it comes to removing the section between the markers.</p>