Relative Path Issue
Posted: Sat Apr 25, 2009 5:50 am
Ive read the manual and comments on this forum, but I cannot figure where I am going wrong with this coding .... help would be appreciated. Ive got a text file I want to open. The text file is located in the same folder as where my stack is being saved. So, when I command:
...I get: H:/Documents and Settings/adrian/Desktop/Methods/Game/Exp5 (v1.6).rev. Perfect, so I can call up my text file with:
...I get what I want. However, I need this to be a relative path because I will be moving the program to other compters. Since the stack and text file are both in the same folder, I think the relative path to is:
... but that doesnt work >.< What am I doing wrong?
Thanks for any help,
Adrian
Code: Select all
put the filename of this stack into fld "Field"
Code: Select all
put url("file:" & "H:/Documents and Settings/adrian/Desktop/Methods/Game/sample1.txt") into fld "Field"
Code: Select all
put url("file:" & "sample1.txt") into fld "Field"
Thanks for any help,
Adrian