title: How to read the first element of a text file and if it matches it, to read the rest of the line?
body: <p>I'm trying to check if the text file contains "Circle" or "Square" and if so to read the rest of the line. I have tried using <code>scan.next()=="Circle"</code> but that doesn't seem to work.
  EDIT: The numbers refer to x and y coordinates which will be implemented into an instance of a class. In this case, Square and Circle.</p>
  
  <p><strong>Text File:</strong></p>
  
  <pre><code>Circle 50 60 40 50 50
  Square 250 260 45 -50 -50
  </code></pre>