Chapter 12: Problem 38
The ___ mode flag causes an offset to be calculated from the end of a file.
Short Answer
Expert verified
Answer: The 'os.SEEK_END' mode flag, used in combination with the 'seek()' method, causes an offset to be calculated from the end of a file. To use it, open the file, and then apply the 'seek()' method with the desired offset and 'os.SEEK_END', like this: `file.seek(-N, os.SEEK_END)`. Replace 'N' with the number of positions you want to offset from the end of the file, using a negative integer to move backwards in the file.