Good evening, I have a problem using fscanf to read some data from an input file, the problem is that by no means read the file, this is the snippet of code
FILE *infile = NULL;
FILE *outfile=NULL;
infile = fopen("mtbank.in", "r");
outfile = fopen("mtbank.out", "w");
char prueba[80];
fscanf(infile,"%s",&prueba);
printf("esto es una %s",prueba);
as a result you get:
esto es una °]¾
How can I solve this? Thank you!