load_file() function