open files, print lines, IO::SEEK_SET, interpolation, multiple functions