List I | List II | ||
A. | tell() | I. | This function used to position the file object at particular position in a file |
B. | seek() | II. | This function returns an integer that specifies the current position of the object in the file |
C. | dump() | III. | This function is used to convert Python objects for writing data in a binary file |
D. | load() | IV. | This function is used to load data from a binary file |
List-I | List-II |
(A) readline() | (I) Writes a sequence of strings to the file |
(B) writelines() | (II) Reads a single line from the file |
(C) seek() | (III) Force any buffered output to be written to the file |
(D) flush() | (IV) Moves the file pointer to the specified position |