I'm trying to port my project from Windows to Mac (latest Mojave version), latest 2019 1.1 Xojo.
I have some code here to load some info from a text file:
#If DebugBuild f = GetFolderItem("").Parent.Child("streets.txt") #Else f = GetFolderItem("streets.txt") #EndIf Dim t As textinputstream = textinputstream.open(f)
This loads from the text file regardless if its a debug build or the actual compiled product. This fails on a Mac with a IOException 2 error, but works fine with Windows 10. The textinputstream line is the one that fails.
The text file i'm loading is in the same folder as the Xojo main project file and is in the project itself too. How would I change this to work on a Mac?