|
-
May 19th, 2008, 04:53 PM
#3
Re: c++ - parsing windows textfile: how to strip extra characters?
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!
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
|