[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47671] textscan re-reads part of the file on
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #47671] textscan re-reads part of the file on the second and subsequent calls |
Date: |
Wed, 13 Apr 2016 10:11:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #2, bug #47671 (project octave):
I forgot to add steps to reproduce the problem.
Type
f = tempname ();
fid = fopen (f, "w+");
fprintf (fid, "1,2\n3,4\n");
fseek (fid, 0, "bof");
A = textscan (fid, "%s %f", 2, "Delimiter", ",");
ftell (fid)
fclose (fid);
unlink (f);
The ftell reports 3, even though 8 characters have been processed.
This is separate from bug #41579 ("textscan: file offset after partial read
differs from Matlab"). Matlab returns 7 instead of 8 for some reason.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47671>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/