hi, with the following patch, textread.cc returns an empty matrix rather than an error when reading an empty file which is, I believe the expected behavior. cheers, eric.
Index: textread.cc
===================================================================
--- textread.cc (revision 4843)
+++ textread.cc (working copy)
@@ -271,7 +271,7 @@
long unsigned int nr_rows = input.lines();
if (nr_rows == 0) {
- return retval;
+ return octave_value (Matrix());
}
// nr_rows represents the number of lines in the file minus the ignored
patch
Description: Binary data
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
