<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-08-19 11:47 GMT+02:00 Tobias Boege <span dir="ltr"><<a href="mailto:taboege@gmail.com" target="_blank">taboege@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 18 Aug 2018, Hans Lehmann wrote:<br>
> Hello Charlie,<br>
> <br>
> what is special about the following line with regard to the path<br>
> specification:<br>
> <br>
> Dim sFile As String = File.Load("../.project")<br>
> <br>
> ?<br>
> <br>
<br>
This is documented here: <a href="http://gambaswiki.org/wiki/cat/path" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/<wbr>cat/path</a><br>
<br>
A relative path starting with ".." references a data file in the<br>
currently running *project*, even if that code is executed from<br>
a component or library.<br>
<br>
Regards,<br>
Tobi<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
-- <br>
"There's an old saying: Don't change anything... ever!" -- Mr. Monk<br></font></span></blockquote><div><br></div><div>Hi Tobias,<br>I find this explanation of the wiki unclear.<br>From it, after compilation, it would seem that the concept of the "current project" no longer exists.<br>But this simple code should work even after compilation, right?<br><br>Note: The file "foo.txt" is located inside the project data folder.<br><br>Public Sub Main()<br><br>  Dim sPath As String = "/tmp/path-test"<br><br>  Try Mkdir sPath<br>  If Error Then Return<br>  Try Copy "./foo.txt" To sPath &/ "foo.txt"<br><br>End<br><br>Regards<br>Gianluigi <br></div></div></div></div>