What is the use of seek() method in files?

What is the use of seek() method in files? Correct Answer sets the file’s current position at the offset

Sets the file’s current position at the offset. The method seek() sets the file’s current position at the offset. Following is the syntax for seek() method: fileObject.seek(offset) Parameters offset — This is the position of the read/write pointer within the file. whence — This is optional and defaults to 0 which means absolute file positioning, other values are 1 which means seek relative to the current position and 2 means seek relative to the file’s end.

Related Questions

You are the administrator of a Windows 2000 Server computer that has one hard disk. This computer runs a custom application that writes a large number of small temporary files in a single directory to support request from client computers. To improve performance of the application, you add three new 100-GB SCSI disks to the server to hold these temporary files. You want to ensure that the application can use all 300 GB of space with a single drive letter. You also want to ensure the fastest possible performance when writing the temporary files. How should you configure the three disks?