[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33876] textscan: resuming reading does not wo
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work |
Date: |
Sat, 30 Jul 2011 18:17:04 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30 |
Follow-up Comment #1, bug #33876 (project octave):
Coincidently, I just wrote a script that I'd thought was working correctly.
After see the bug report, I checked and found it was not.
Below is a simple script I used to check (using the developer's sources)
fid = fopen ("coordinates.txt", "w");
for n = 1:2:20
fprintf (fid, "%d %dn", n + [0 1])
endfor
fclose (fid);
fid = fopen ("coordinates.txt", "r");
c1 = textscan (fid, "%d %d", 1)
c2 = textscan (fid, "%d %d", 2)
c3 = textscan (fid, "%d %d", 3)
fclose (fid);
and the result was ...
c1 =
{
[1,1] = 1
[1,2] = 2
}
c2 =
{
[1,1] =
5
7
[1,2] =
6
8
}
c3 =
{
[1,1] =
11
13
15
[1,2] =
12
14
16
}
It looks like each time textscan is called, and extra line is read, but not
processed.
Philip, can you confirm this is the same problem you've reported? ... or is
there something more?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33876>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Philip Nienhuis, 2011/07/28
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work,
Ben Abbott <=
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Ben Abbott, 2011/07/30
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Ben Abbott, 2011/07/30
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Philip Nienhuis, 2011/07/31
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Ben Abbott, 2011/07/31
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Philip Nienhuis, 2011/07/31
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Ben Abbott, 2011/07/31
- [Octave-bug-tracker] [bug #33876] textscan: resuming reading does not work, Rik, 2011/07/31