title: How to include white spaces in my file reading
body: <pre><code>int main()
  {
  string path = "c:\\encryption\\";
  string searchPattern = "*.txt";
  string fullSearchPath = path + searchPattern;
  
  WIN32_FIND_DATA FindData;
  HANDLE hFind;
  
  hFind = FindFirstFile( fullSearchPath.c_str(), &amp;FindData );
  
  if( hFind == INVALID_HANDLE_VALUE )
  {
      cout &lt;&lt; " !!! Error searching directory !!!" &lt;&lt; endl;;
      return -1;
  }
  
  do
  {
      string filePath = path + FindData.cFileName;
      ifstream in( filePath.c_str() );
      if( in )
      {
         //////////////////////// HERE IS PROBLEM I KNOW THAT BUT WHAT I DON'T KNOW
                  char s;
                  while (!in.eof()) 
                  { 
                      in &gt;&gt; s; 
                      cout &lt;&lt; s &lt;&lt; endl; 
                  }
  
                  cout &lt;&lt; "************************ File Completely Read *** **************************** " &lt;&lt; endl;
          ///////////////////////////////////////////////////////////////////////
      }
      else
      {
          cout &lt;&lt; " !!! Problem opening file !!!" &lt;&lt; FindData.cFileName &lt;&lt; "\n";
      }
  }
  while( FindNextFile(hFind, &amp;FindData) &gt; 0 );
  
  if( GetLastError() != ERROR_NO_MORE_FILES )
  {
      cout &lt;&lt; " !!! Something went wrong during searching !!! " &lt;&lt; endl;
  }
  
  return 0;
  }
  </code></pre>
  
  <p><strong>I am reading all the files from a specific folder one by one  And then
  for each file reading it character by character.. Above is my effort
  so far Now, I am stuck in a part that i want to read white spaces as
  well.. What should i do ? what should i include? Kindly give me some suggestions</strong></p>