Hello there, I am having trouble copying text into a string, what am i doing wrong?
#include <stdio.h>
int main() {
char instructions[80];
FILE *f;
f=fopen("a3.txt","r");
while (fscanf(f,"%s",instructions != EOF){
fscanf(f,"%s",instructions);
}
printf("%s",instructions);
}
the contents of a3.txt are
B404
239A
2412
5345
350C
C000.