I have a text file that contains items such as:
I have a script that matches the name and color inputted from a form with a line in the text file. If they match, I want to be able to print only the name withoout the color on the screen. I just can't figure out how to print only that part with out the whole line. I thought about using the foreach statement, but that just gives me a loop and requires everything in the line to be printed. Any ideas?