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

Re: [amibroker] Can AFL read the folder name AB is running in?


  • Date: Wed, 24 Feb 2010 17:28:37 +0100
  • From: Tomasz Janeczko <groups@xxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Can AFL read the folder name AB is running in?

PureBytes Links

Trading Reference Links

Hello,

Yes you can, but do not use backslash at the very beginning, and use \\ 
for backslash because \ alone is just start of escape sequence, so 
correct usage would be:

fopen("MyData\\myfilename.txt", "r");



Best regards,
Tomasz Janeczko
amibroker.com

On 2010-02-24 17:25, Herman wrote:
> Thanks!
>
> That sounds good, I suppose I can prefix a sub-folder name to the filename?
>
> for example use fopen("\MyData\myfilename.txt", "r");
>
> herman
>
>    
>> Hello,
>>      
>    
>> Why just don't you use relative path ?
>> if you for example use
>>      
>    
>> fopen("myfilename.txt", "r")
>>      
>    
>> it will always look for "myfilename.txt" inside CURRENT FOLDER.
>>      
>    
>> Relative paths ALWAYS refer to current folder without need to retrieve
>> it / specify it .
>>      
>    
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>>      
>    
>> On 2010-02-24 17:02, Herman wrote:
>>      
>>> Hello,
>>>
>>> To perform file operations I  need  to  know the current folder name
>>> for AmiBroker.
>>>
>>> On my XP computers it is "Program Files". On my Windows 7 computer it
>>> is "Program Files (x86)", or "Program Files" if I run AB64bit.
>>>
>>> How can afl automatically detect which folder it is using?
>>>
>>> Thanks,
>>> herman
>>>
>>>
>>>
>>>
>>> ------------------------------------
>>>
>>> **** 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
>>>
>>>
>>>
>>>
>>>
>>>        
>
>    
>> ------------------------------------
>>      
>    
>> **** 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
>>      
>
>
>
>
>
> ------------------------------------
>
> **** 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
>
>
>
>
>    


------------------------------------

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/