12345678910111213 |
- def writeFile(self, filename, position, text):
- file = open("F:/labOS/funner.dat", "r+")
- a = self.checkFileForPage(filename)
- b = int(a)
- offset = 0
- page = b * 64
- limit = page + position
- while page in range(limit):
- file.seek(1)
- page += 1
- offset += 1
- file.seek(limit)
- self.myfile.writeToFile(text, b, position)
|