word by word from a line in file

Hello. How to read word by word from a line in file into struct. Say for example:

12345 Joe Lim KH 879.00
12233 Kay Suet Yee 35.98

to

1
2
3
4
5
6
7
struct master {
	
	unsigned short int IDnum;
	char name[30];
	float salesCustomer; 
	
	};
You already have a thread about that: http://www.cplusplus.com/forum/general/140501/
Topic archived. No new replies allowed.