problem in reading text files
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Sep 8 11:50:44 CDT 2008
On 6-Sep-2008, Ben Abbott wrote:
|
| On Sep 5, 2008, at 3:11 PM, Yaping Zhou wrote:
|
| > Thank you all for looking at this.
| >
| > The text files I sent before were from Perl. After I read your
| > discussion about line end characters, I used SciTE to change the
| > line end characters to LF and CR. I wasn't able to load any of them
| > ( see attachment). I was using 3.0.1 on Windows XP.
| >
| > Regards
|
| "load NotOK2_LF.txt" works for me ... I tried both Octave 3.0.1 and
| 3.1.51.
I checked in the follwoing changes to my sources. These should
probably also be applied to the 3.0.x branch. I think this should
allow files containing any combination of LF, CR, or CRLF to be loaded
properly. It works for me on a GNU/Linux system and I think it should
also work on OS X and Windows systems. But I can't easily check that,
so it would be helpful if someone could test this patch on those
systems.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20080908/d17e08e1/attachment.ksh
More information about the Bug-octave
mailing list