in reply to Re: Where am I going wrong?
in thread Where am I going wrong?

I know the file isn't empty, I initially wrote the program to just print the file so I could see what it looked like. I made the change you suggested and didn't get any output still. The fasta file has header line then sequence line for each sequence, and I need the program to search the sequence for the desired code, then if the sequence is found, print the corresponding header, and then the sequence and location of the sequence