Try something like:
That code's off the top of my head and it's been a while since I wrote C code, so I expect there'll be lots of bugsCode:FILE *fpFile; char buffer; // open file for reading, check the syntax because it's been a while. fpFile = fopen(FILE_PATH_AND_NAME, "r"); // Loop through and send characters to the processor until STOP_CHARACTER is found. // Again, check the syntax while ((buffer = getchar(fpFile)) != STOP_CHARACTER) { //Send character to processor }; fclose(fpFile);![]()




Reply With Quote