title: Reading until end of line
body: <p>I'm trying to read from a file in C as a part of a project of mine.</p>
  
  <p>My PURPOSE is to parse the words in that file(which are either separated by a whitespace, comma, semicolon or the new line character) into tokens.</p>
  
  <p>For that I <strong>MUST</strong> read character by character.</p>
  
  <pre><code>do {
  
      do {
  
          tempChar = fgetc(asmCode);
          strcpy(&amp;tempToken[i], &amp;tempChar);
  
          i++;
  
      } while (tempChar != ' ' || tempChar != ':' || tempChar != ';' || tempChar != ',' || tempChar != '\n');//reading until the given parameters
  
      i = 0;
  
      //some other code with some other purpose
  
  } while (tempChar != EOF);//reading until the end of the file
  </code></pre>
  
  <p>Even though the following code reads from the file, it doesn't stop reading since somehow it doesn't apply the conditions inside while.</p>
  
  <p>What am I doing wrong here?</p>
  
  <p>P.S. both tempChar &amp; tempToken are defined as char variables. also another </p>