> No, I don't know ahead of time. > But I've had some success... this seems to work for my test file, > should it hold up for other files? I'm guessing that I had to add 2 > to each line for a carriage return + line feed.
Yeah, that's right. Windows text files use \r\n for line termination, so that's why you have to add 2 to the length of the string read. ------------- Ehsan Akhgari Farda Technology (http://www.farda-tech.com/) List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] I've done the math enough to know the dangers of a second guessing... _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
