Sufi,

If the problem is UNIX/DOS end of line, you can do it a couple of ways.

One way would be to preprocess the files you are working with to substitute 0x0d,
0x0a (CR/LF) for each 0x0d(CR) character found. It appears that is what you are
doing by hand with your editor.

Otherwise, as other have pointed out, String.trim() should work, as the 0x0d
character should be treated as whitespace and deleted.

You might want to get an editor that displays in HEX. Then you can be sure exactly
what characters are appearing at the ends of your lines in the original file. That
way you'll be sure you're not "chasing the wrong dog..."

Hope this helps,

-- Steve Downie

sufi malak wrote:

> I tried trim(), but it does not work, it looks like it's a format problem,
> since if I hit enter in each line then take off the line created, how to do
> this for the string in the class ?
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to