Included below is the contents of the input sample file we will use. It should be copied into a file called phonedir.txt in your working directory. Alternatively download and save phonedir.txt directly into your working directory.
FIRSTNAME|LASTNAME|EXTENSION|ROOM|JOB Joe|Bloggs|4455|C99|Manager Jack|Frost|4321|A23|Air Conditioning Technician John|Doe|3888|B56|Coroner Mike|Tyson|7911|A23|Security Rosanne|Barr|1111|A01|Receptionist Bill|Clinton|4723|C55|Legal Services Jerry|Springer|8844|B44|Public Relations Frasier|Crane|6542|B78|Counsellor
In the above | (bar) is used as a delimiter. We could have just used whitespace (the default) but some of the names might have had spaces in them and some of the job titles actually do. This would muck up the field delineation. The first line in the input names the columns, without it they would end up being assigned dummy names Unnn with nnn running from 000 to 999.
Now that you have got the source data lets create the first definition file to process it!