Mercurial > hg > octave-lyh
comparison scripts/io/fileread.m @ 14416:59e20a5e2ca8
fileread() should return a row vector.
* fileread.m: Return a row vector.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 27 Feb 2012 07:50:26 -0500 |
parents | f3d52523cde1 |
children | 099bd779466c |
comparison
equal
deleted
inserted
replaced
14415:eeff2d0a275d | 14416:59e20a5e2ca8 |
---|---|
36 if (fid < 0) | 36 if (fid < 0) |
37 error ("fileread: cannot open file"); | 37 error ("fileread: cannot open file"); |
38 endif | 38 endif |
39 | 39 |
40 unwind_protect | 40 unwind_protect |
41 str = fread (fid, "*char"); | 41 str = (fread (fid, "*char")).'; |
42 unwind_protect_cleanup | 42 unwind_protect_cleanup |
43 fclose (fid); | 43 fclose (fid); |
44 end_unwind_protect | 44 end_unwind_protect |
45 | 45 |
46 endfunction | 46 endfunction |