help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fgetl() on Windows


From: AlexG1
Subject: fgetl() on Windows
Date: Mon, 11 May 2009 07:02:52 -0700 (PDT)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]