This article shows how to initialize arrays in a C program with values from text files.
View more at https://www.allaboutcircuits.com/technical-articles/embedded-firmware-initialize-arrays-in-c-signal-waveforms-file-data/.
Published by Department of EEE, ADBU: tinyurl.com/eee-adbu