A header data storage unit stores therein header data that identifies each
file. A header data reader reads the stored header data, from the header
data of the first file written to a magnetic tape to the header data of a
target file, in order in which the files have been written to the
magnetic tape. Based on the number of files whose header data have been
read, an input/output controller controls positioning of a magnetic head.