[b] put_file correctly by using file content