[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv |
Date: |
Sat, 25 Mar 2017 19:26:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #13, bug #50619 (project octave):
To the original poster, the following mods work for me (add new line to the
delimiters and increase the buffer size):
provaPath = 'testfile.csv'
file = fopen(provaPath);
formatSpec = '%s %s %s %s %s %s %s';
[col_headers, pos1] = textscan(file, formatSpec, 1, 'Delimiter', ";\n",
'BufSize', 4096);
formatSpec = '%f %f %f %f %f %f %f';
[logLine, pos2] = textscan(file, formatSpec, 1, 'Delimiter', ";\n", 'BufSize',
4096);
fclose(file);
It's not a bug fix, but if you keep your string lengths well below 4096, the
above should work.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50619>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, (continued)
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Andrea, 2017/03/24
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Philip Nienhuis, 2017/03/24
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Andrea, 2017/03/24
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Philip Nienhuis, 2017/03/24
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Rik, 2017/03/24
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Dan Sebald, 2017/03/25
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Philip Nienhuis, 2017/03/25
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Philip Nienhuis, 2017/03/25
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Dan Sebald, 2017/03/25
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Dan Sebald, 2017/03/25
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv,
Dan Sebald <=
- [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv, Philip Nienhuis, 2017/03/25