I have a While loop
that reads a line
of a file.txt
. I also have a method named VerifyPhoto
that returns true/false
I want to go to next item of the while loop
if the returned value is false
. How Could I do that ? I tried break
and return
but it just leave all and back to the form
...
while (!reader.EndOfStream)
{
if(VerifyPhoto(filed.matriculation) == false)
{
//go to the next line of the file.txt
}
}