Quote Originally Posted by jimblumberg View Post
Where are you assigning memory for x?

Also if the following line hasn't changed what is it doing?

Code:
numRows = inFile.get();
Jim
The infile object is reading in an integer from the specified file and storing it in the integer named numRows. I looked at the c++ api (not sure what to call in c++) and the method .get() said it read in a char value and stored it as an integer. The first value in the file is a simple integer such as 5 so the get() method should be able to read it into the file.