mercredi 26 avril 2017

How to check if a string contains a char?

Hello I have a text file that I read and I have to know if one of these string contains '[' so I used :

if if(array[i] == "[")

But the problem is that it is not "[" it is "array = [" so it does not work.

Do you have any ideas to solve this ?

Thank you

Aucun commentaire:

Enregistrer un commentaire