fgetl() on Windows
AlexG1
alxgel at gmail.com
Mon May 11 09:02:52 CDT 2009
Hello,
I'm having some trouble using the fgetl() function on a Windows system.
Every line in a Windows file ends with <cr><lf>. While fgetl() ignores the
<lf> character it doesn't ignore <cr> (unlike the Matlab version of the same
function), which can be problematic in some cases (e.g. when I'm reading a
file path and then try to use fopen() on it - I get fid = -1).
Is there a function which ignores <cr> completely, or should I shorten every
line that is read by 1 character?
Thanks,
Alex
--
View this message in context: http://www.nabble.com/fgetl%28%29-on-Windows-tp23483929p23483929.html
Sent from the Octave - General mailing list archive at Nabble.com.
More information about the Help-octave
mailing list