[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[4]: [amibroker] Re: Help: I am stuck with 'simple' file operation.



PureBytes Links

Trading Reference Links

Title: Re[4]: [amibroker] Re: Help: I am stuck with 'simple' file operation.


ahh, that is how to do it!


thanks Tomasz,

thanks also for the IBc upgrade ;-)


herman



Friday, September 11, 2009, 6:05:56 AM, you wrote:






Hello,

 

No it does not "truncate" but reads upto 1024 characters PER SINGLE LINE. Lines longer than that can be read using sequential

calls to fgets() and "adding" (concatenating) results.


Best regards,

Tomasz Janeczko

amibroker.com

----- Original Message ----- 

From: Herman 

To: Herman 

Sent: Friday, September 11, 2009 11:52 AM

Subject: Re[2]: [amibroker] Re: Help: I am stuck with 'simple' file operation.


FYI,


fwiw, I did some more testing, and Googling, and it seems that (I am no programmer) fgets() by default, unless buf() is used, truncates the string returned to 1024 characters. If you read AmiBroker .tls files on the fly, like I do in my system, this can screw up matters royally. If you use files I suggest you watch out for this problem.


best regards,

herman 



Tuesday, September 8, 2009, 5:14:09 PM, you wrote:






Yes, that is what I figured but now at least I know it happens not just to me... thanks for testing. 


My system was picking strange tickers because my .tls list was truncated and StrExtract() didn't return the proper symbols. Took me quite awhile to figure out what was happening. Oh well, I'll save each symbol on its own line, more code :-( 


thanks again for your confirmation!

herman



Tuesday, September 8, 2009, 2:38:46 PM, you wrote:


> You've probably reached some kind of buffer size limitation (e.g. max string

> length). Note that it works for lower values of n (e.g. 90).


> Try altering your logic to write/read multiple lines instead of packing all the data on a single line.


> Mike




> ------------------------------------


> **** IMPORTANT PLEASE READ ****

> This group is for the discussion between users only.

> This is *NOT* technical support channel.


> TO GET TECHNICAL SUPPORT send an e-mail directly to 

> SUPPORT {at} amibroker.com


> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at

> http://www.amibroker.com/feedback/

> (submissions sent via other channels won't be considered)


> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:

> http://www.amibroker.com/devlog/


> Yahoo! Groups Links


> <*> To visit your group on the web, go to:

>     http://groups.yahoo.com/group/amibroker/


> <*> Your email settings:

>     Individual Email | Traditional


> <*> To change settings online go to:

>     http://groups.yahoo.com/group/amibroker/join

>     (Yahoo! ID required)


> <*> To change settings via email:

>     mailto:amibroker-digest@xxxxxxxxxxxxxxx 

>     mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx


> <*> To unsubscribe from this group, send an email to:

>     amibroker-unsubscribe@xxxxxxxxxxxxxxx


> <*> Your use of Yahoo! Groups is subject to:

>     http://docs.yahoo.com/info/terms/











__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___