Quick snippet to convert text files to unix based line endings
| From: | Mike Zornek | Date: | Mon, 24 Mar 2003 19:36:42 +0000 |
| Subject: | Quick snippet to convert text files to unix based line endings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140875@lists.php.net to get a copy of this message | ||
I'm writing a little script that is parcing a excel generated csv file.
While all the users will be using windows I'd like to make it safe for all
file types.
Any one have a quick snippet that I could use to convert a temp file to use
all \n based line endings for consistency?
Thanks.
~ Mike
--
Mike Zornek
http://MikeZornek.com