title: How to check if a string contains a char?
body: <p>I have a text file that I want to read. I want to know if one of the lines contains <code>[</code> so I tried :</p>
  
  <pre><code>if(array[i] == "[")
  </code></pre>
  
  <p>But this isn't working.</p>
  
  <p>How can I check if a string contains a certain character?</p>