refactor: use 'length' instead of 'width'; add 'print_file_data()' test