Here's how I've been doing it:
if (StrRight(temp_row, 1) < " ")
temp_row = StrLeft(temp_row, StrLen(temp_row) -1);
d
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of PKJR
> Sent: Monday, June 26, 2006 9:22 AM
> To: [email protected]
> Subject: [amibroker] Removing newline character
>
> I am looping through csv file and parsing a data and I
> forgot about newline characters that fgets includes.. so I am
> trying to remove it now..
> would I basically do:
> if (StrRight(temp_row,2)=="\n")
> ..then.. get the length etc and use StrMid
>
> or is there a simpler way or a built-in function?
>
> Tks/PKJR
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Something is new at Yahoo! Groups.
> Check out the enhanced email design.
> http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/GHeqlB/TM
> --------------------------------------------------------------
> ------~->
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly
> to SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/