I these contents below written to a file.I want to user to input a number and i will then scan the file to see if it matches my registration number. But in doing this i just want to get the 1001 from the first line.
REGISTRATION: 1001
NAME Donellie Whyte
ADDRESS: 5 Plover Road
NUMBER: 234-7890
DATE OF BIRTH: 12/12/12
LAST TREATMENT: Filling
ALLERGIES: None
LAST APPOINTMENT: 5/09/09