Hi, I have a simple program that ask for a four digit number and then multple questions and writes the input to a text file, so I have a text file with multple lines of information and each line starts with a four digit number. I now want to check that when a four digit number is entered at the command line it doesn't already exist and if it does exist I want the whole line of information to be printed to the comand line.
Can you tell me how I can do this.
Thanks in advance.