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

Re: [amibroker] Attn: Stefan F (Was: Heads up with XP SP-2 and Metastock Downloader)



PureBytes Links

Trading Reference Links

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]



------------------------ 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/