|
-
May 19th, 2008, 05:20 PM
#4
Re: c++ - parsing windows textfile: how to strip extra characters?
 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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|