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

RE: [amibroker] Candle colour



PureBytes Links

Trading Reference Links

Ara,

Why would you not know if a file is currently open?

Do you have multiple indicators writing data??? If so - May I suggest the 
use of GLOBALS and one controll AFL to do any reading/writing.

         ATB
           MSG



At 10:50 AM 12/08/2004, you wrote:
>I am trying to write an interface routine for automated trading with 
>NinjaTrader  front end.
>
>A question about opening files:
>
>fh = fopen("Fhtest2","w");
>
>if (fh)
>
>{
>
>fputs("FhTest"+"\n",fh);
>
>}
>
>I understand the code above... the question is if I am opening a file to 
>append, what what is the value of fh when a file exists but it is open 
>from another application.
>
>This situation can create a potential problem if there is a conflict.
>
>If there is a conflict due to file being open already, does Windows do 
>anything or just return the fh value?
>
>Thanks
>
>Ara
>
>[Non-text portions of this message have been removed]
>
>
>
>
>Check AmiBroker web page at:
>http://www.amibroker.com/
>
>Check group FAQ at: 
>http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>Yahoo! Groups Links
>
>
>
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/