Nathan Heagy wrote:
Also, Java supports this, and the algorithm to support it is not difficult: to read a line, read until you see either \r or \n; if you see \r, peek one character ahead and if that's a \n, include it in the line.
What about the mac where \r *is* the line ending?
then it won't be a \n, so it won't be included. -Chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------