All,<div>  I&#39;m using vtkDataReader to read a file. The contents of the file start with the following line: &quot;patch 190 PatchName&quot;. Below is the code I&#39;m using to read my file</div><div><br></div><div>char line[256];</div>
<div>int numPts = 0;</div><div><br></div><div>vtkDataReader *reader = vtkDataReader::New();</div><div>reader-&gt;SetFileName( &quot;myfilename.dat&quot; );</div><div><br></div><div>reader-&gt;ReadString( line );</div><div>
if ( reader-&gt;LowerCase(line),&quot;patch&quot;,5 )</div><div>{</div><div>   reader-&gt;Read( &amp;numPts );</div><div>}</div><div><br></div><div>I ran the code in Debug mode and found out that the Read function in vtkDataReader.cxx is returning 190 but it is not being passed to my code. In other words, the variable &quot;numPts&quot; in my code is not being assigned a value of 190. Can someone help me figure out this strange behavior?</div>
<div><br></div><div>Thanks</div><div>Prashanth</div><div><br></div><div>   </div><div><br></div><div><br></div><div><br></div>