Skip to content
Snippets Groups Projects
Commit 9647d459 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Tried to fix problem of reading a single line with no CR

parent c75ac3d6
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,10 @@ namespace MISCMATHS { ...@@ -143,7 +143,10 @@ namespace MISCMATHS {
cmax--; cmax--;
RowVector newrow(cmax); RowVector newrow(cmax);
while (!fs.eof()) { cerr << "FOUND " << cmax << " COLUMNS!" << endl; // MJTEST
do {
cerr << "READING LINE" << endl; // MJTEST
getline(fs,cline); getline(fs,cline);
cline += " "; // force extra entry in parsing cline += " "; // force extra entry in parsing
istrstream ss(cline.c_str()); istrstream ss(cline.c_str());
...@@ -161,7 +164,7 @@ namespace MISCMATHS { ...@@ -161,7 +164,7 @@ namespace MISCMATHS {
if (rcount>1) mat = mat & newrow; if (rcount>1) mat = mat & newrow;
else mat = newrow; else mat = newrow;
} } while (!fs.eof());
mat.Release(); mat.Release();
return mat; return mat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment