tree_24.py 414 B

12345678910111213
  1. def writeFile(self, filename, position, text):
  2. file = open("F:/labOS/funner.dat", "r+")
  3. a = self.checkFileForPage(filename)
  4. b = int(a)
  5. offset = 0
  6. page = b * 64
  7. limit = page + position
  8. while page in range(limit):
  9. file.seek(1)
  10. page += 1
  11. offset += 1
  12. file.seek(limit)
  13. self.myfile.writeToFile(text, b, position)