Hi guys,
Need some help reading a space delimited text file into a linked list.

The text file looks like this:
012452 John Smith 23.56
891756 Joe Bloe 24.94
268174 Sample Smith 18.56
718756 Terry Totts 27.86
261786 James Packer 25.98

Each record is one line in the above file. I need to read in 4 fields from the above:
int empNo; char firstname; char lastame; double rate;

How do I read one line at a time until the EOF, while at the same time capturing each of the four fields per record.

The catch is, I must not use an array!

Please let me know if anyone can help me start this code.

Cheers!