YOu mean tu read a file with fread and then parse the array with sscanf? (fscanf wil read from the file, so, dont read twice
). If thats the case, sure you can.... but I dont think that it will make any difference in performance. Besides, dont asume that your program will run slow when it reads from a file. Maybe your performance problems (if any) could be somewhere else.
Cheers!