[build][fr] build_data: readFile as a generator