PureBytes Links
Trading Reference Links
|
Hello,
Two advices on using of file functions.
1. You have to check file handle returned by fopen.
2. And you should escape backslashes in path
fh = fopen("C:\\path\\to\\the\\file\\test.txt", "a"); // single backslash in C and AFL is writen as \\ in strings !!!
if( fh )
{
// file successfully opened !!!
fclose( fh );
}
else
{
// ERROR !!!!
}
Best regards,
Tomasz Janeczko
amibroker.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|