3) fscanf() can do that