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:
Code: Select all
put the filename of this stack into fld "Field"
...I get: H:/Documents and Settings/adrian/Desktop/Methods/Game/Exp5 (v1.6).rev. Perfect, so I can call up my text file with:
Code: Select all
put url("file:" & "H:/Documents and Settings/adrian/Desktop/Methods/Game/sample1.txt") into fld "Field"
...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:
Code: Select all
put url("file:" & "sample1.txt") into fld "Field"
... but that doesnt work >.< What am I doing wrong?
Thanks for any help,
Adrian