Or add: cString := StrTran( cString, CRLF, LF )
Or switch to use HB_FReadLine() Or, in my case I use: ProcessTextFile( <cFile>, <bBlock>, @Eval() ) Which also supports: ProcessTextFile( <cFile>, <oObject>, HB_ObjMsgPtr( <oObject>, "SomeMethod" ) ) The function opens the file and calls either a block or an object method for each line. Ron -------------------------------------------------- From: "Vicente Guerra" <v...@guerra.com.mx> Sent: Saturday, October 17, 2009 11:11 AM To: "xHarbour-Developers List" <xharbour-developers@lists.sourceforge.net> Subject: [xHarbour-developers] Debugger/hb_atokens() fails at EOL CR+LF > Hi! > > Debugger fails to show a file with CR+LF as EOL. Under Windows, it > shows CHR(10) at the beginning of the line (from line 2). Under Linux, > it only shows first line. > > The problem occurs here: xharbour/source/debug/tbrwtext.prg, line 355 > > STATIC FUNCTION Text2Array( cString ) > RETURN hb_aTokens( cString, WhichEOL( cString ) ) > > hb_aTokens() works *ONLY* with a single-character token, but EOL is > 2-byte long. > > Should hb_aTokens() must be fixed, or must Text2Array() be changed? > > Thanks in advance. > > Atte. > Vic > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers