In my script I want to read a text file when a user uses a command.

How it looks in my text file:

NICK1|2
NICK2|4

etc etc etc

I want the results to look like:

"NICK1, you have 2" or "NICK2, you have 4".

All help appreciated.