[Solved] Reading a character and a string from a file in C [closed]
(I did that answer while R 0x… and W 0x… was given on the same line rather than two) If you are sure each line of the file contains R<space>0x…<space>W<space>0x… then you can do int main() { FILE * fp = fopen(“in”, “r”); if (fp == NULL) { puts(“cannot open ‘in'”); return -1; } char … Read more