File parsing function.
Works like sscanf, but reads the input from the file file rather than from a buffer of type char *.
file
char *