From bug-request at octave dot org Thu Feb 24 08:32:43 2005 Subject: octave bug - ftell From: "John W. Eaton" To: Michael McGrath Cc: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 24 Feb 2005 09:38:09 -0500 On 24-Feb-2005, Michael McGrath wrote: | I am running octave on win2000 and am having a problem using ftell which | is giving me incorrect results. The result returned by the second ftell | changes when I run the script multiple times | | >> version | ans = 2.1.50 That's quite old. I think ftell is unreliable for text files due to end-of-line translations. With 2.1.50, you will need to open files with "wb" and "rb". Since 2.1.57, binary mode is the default. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------