|
From: | Benjamin Lindner |
Subject: | Re: fgetl() on Windows |
Date: | Thu, 21 May 2009 12:18:58 +0200 |
User-agent: | Thunderbird 2.0.0.18 (Windows/20081105) |
Bob Odom wrote:
Hi Alex, You can get rid of the <cr> at the end of the line using: dos2unix file.in file.out If you don't have access to a Unix or Linux system, there may be a Windows version of that function. If you know anyone with a Linux or Unix system they will have the proper function and can easily do it for you. Also there is a complementary function: unix2dos which adds the <cr> and linefeed to the end of every line. Bob
The mingw32 binary of octave ships with mingw's gcc collection, which includes both dos2unix and unix2dos. Have a look at the mingw32/bin subdirectory.
You can also get them sperately from the mingw download page at sourceforge. It's the "Mingw Utils" package
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=61599 benjamin benjamin
[Prev in Thread] | Current Thread | [Next in Thread] |