Here is the code:
int main() { struct vinnaren { char vinnare[20]; int artal; }; struct vinnaren v[10]; int inputrader;
I got a really simple answer but I don't know if it is helping anyone:
int OpenCommand(int idOfCommand) { fscanf(file_ptr, "%[^idOfCommand]",a[idOfCommand]); printf("%d\n", a[idOfCommand]); system("pause"); return 0; }