Quote Originally Posted by Duoas
In my experience, cross-platform programs that cannot handle the difference between Win and Unix line endings (at bare minimum) always break when least desired.

It gets me at home often enough that I wrote myself a little utility years ago that I'm still using that does the same as dos2unix, so my dumb windows programs can handle unix text files.

You might just want to get lines with this little example
http://www.codeguru.com/forum/showpo...0&postcount=11

It handles LF (unix), CRLF (windows), and CR (mac). Enjoy!
I find it hard to believe that you are trying to convince us that your switch example is not spaghetti code!