get_file_data supports offset and count